[Python-bugs-list] [ python-Bugs-523301 ] ConfigParser.write(): linebreak handling

noreply@sourceforge.net noreply@sourceforge.net
Wed, 06 Mar 2002 14:01:05 -0800


Bugs item #523301, was opened at 2002-02-27 01:05
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=523301&group_id=5470

Category: Python Library
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Rahlf (rahlf)
Assigned to: Nobody/Anonymous (nobody)
Summary: ConfigParser.write(): linebreak handling

Initial Comment:
ConfigParser.read() accepts line rfc822-like line
continuations:

[xxx]
line: this line is longer than my editor
   likes it

ConfigParser.write() does not handle these linebreaks
and produces:

[xxx]
line: this line is longer than my editor
likes it

which can not be read by ConfigParser.read().
This can be fixed easily by adding a
"value.replace('\n', '\n\t')" in ConfigParser.py.

----------------------------------------------------------------------

Comment By: Sean 'Shaleh' Perry (shaleh)
Date: 2002-03-06 14:01

Message:
Logged In: YES 
user_id=37132

This seems like a valid approach.  One of the pythoners want to comment?


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=523301&group_id=5470