|
From: Stef M. <s.m...@ru...> - 2007-09-27 22:34:36
|
>> Another question: is it possible to force the normal windows end-of-line
>> (CR+LF),
>> when writing to the config file ?
>>
>>
>
> Hmmm... doesn't that happen automatically on Windows?
>
>
Hmm.. now you told me, it does indeed ???
So I guess my observation was caused by a crash or error somewhere in my
program.
> ConfigObj does expose a 'newlines' attribute ('\r\n', '\n', or '\r'). It
> does however go to great lengths to preserve line endings in a config
> file it has read - or to use the native ones for the platform.
>
>
Great component,
- my names in the name-value pairs keep their case
- the order of the items in a section is preserved
thanks very much Michael.
I'll let you know when I release my program ( a hardware / software
simulator for microcontrolers),
so you can add it to the " Real World" chapter.
cheers,
Stef
|