Skip Menu |

This queue is for tickets about the Config-General CPAN distribution.

Report information
The Basics
Id: 42287
Status: resolved
Priority: 0/
Queue: Config-General

People
Owner: tlinden [...] cpan.org
Requestors: richard.poettler [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Download (untitled)
application/pgp-signature 197b

Message body not shown because it is not plain text.

fixed in 2.43