[Python-bugs-list] [ python-Bugs-523301 ] ConfigParser.write(): linebreak handling
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 27 Feb 2002 01:05:54 -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.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=523301&group_id=5470