|
From: Michael F. <fuz...@vo...> - 2007-09-27 22:59:52
|
Stef Mientki wrote:
>>> 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.
>
Cool - sounds great.
Michael
> cheers,
> Stef
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Configobj-develop mailing list
> Con...@li...
> https://lists.sourceforge.net/lists/listinfo/configobj-develop
>
>
|