I've been trying to get a Python 3 script be able to write intention from a config with settings using multi lines. Instead of printing the indent it instead print everything in plane text.
[DEFAULT]
FooParam =
Line1
\tLine2
\tLine3
Line4
Above example return the following output both as print (FooParam)
and as f.writelines (FooParam)
:
Line1
\tLine2
\tLine3
Line4
I've also tried to make additional spaces and this did not work either.
[DEFAULT]
FooParam =
Line1
Line2
Line3
Line4
with the same output;
Line1
Line2
Line3
Line4
The string I use to call the target parameter look like this:
FooParam = cfg.get(make_target, "FooParam", fallback="")
Is there are a way to make tabs being taken in consideration when reading from a config?