Subject: | Values with spaces at the beginning or end and written with save_file() won't be parsed correctly again |
Date: | Sun, 11 Jan 2009 01:16:14 +0100 |
To: | bug-Config-General [...] rt.cpan.org |
From: | Richard Pöttler <richard.poettler [...] gmail.com> |
A line in a config file like:
key="value "
gets parsed correctly with the space at the end, when it is written
to a file with save_file() it looks something like:
key value
with a space at the end of the line. If the same config file gets parsed
again it will get the value without a space, because the value wasn't
enclosed by quotes.
This makes it impossible to use a config file with values with spaces
for reading and writing.
--
quoting guide: http://www.xs4all.nl/~hanb/documents/quotingguide.html
Message body not shown because it is not plain text.