Subject: | Problem with 'heredoc' option |
Hi there, I'm using the IniHash module to store several properties of a system. Some of those properties are multiline, so I'm using the "heredoc" option.
Problem is that when I read an INI file with the following format:
KEY=<<END
Line1
Line2
END
The module reads it properly, but if I modify the INI file and write it,
it gets written as
KEY=Line1
Line2
Next time I load the file, the module only reads "Line1" and if I rewrite
I'm now even loosing Line2
I guess the issue here is that the WriteINI function should detect whether a key's value is multiline, and if so use the heredoc format.
Regards,
Constantino Morera