ConfigParser options spanning more than one line
Nick Patavalis
npat at efault.net
Mon Aug 16 14:26:32 EDT 2004
On 2004-08-16, Josh Close <narshe at gmail.com> wrote:
> I'm using ConfigParser and I can't seem to get a config option to span
> more than one line.
>
> [MyConfig]
> var = blah blah blah\
> blah continued
>
> Putting the '\' doesn't work
>
> Is there a way to do that? Or do I have to deal with having a huge
> long string all on one line?
Simply do:
[MyConfig]
var = blah blah blah
blah continued
without the '\'. Indentation continues the line.
/npat
More information about the Python-list
mailing list