[Lazarus] End-of-Line style for .lpi files keep changing

Flávio Etrusco flavio.etrusco at gmail.com
Tue Feb 23 13:19:06 CET 2010


2010/2/23 Mattias Gärtner <nc-gaertnma at netcologne.de>:
> Zitat von Graeme Geldenhuys <graemeg.lists at gmail.com>:
>
>> Mattias Gärtner wrote:
>>>>
>>>> Unfortunately the same can not be said for the *.lpi files. This is
>>>> quite
>>>> annoying. Could the same rules for *.pas files be applied to *.lpi
>>>> files?
>>>
>>> It is completely different code.
>>> laz_xmlread, laz_xmlwrite and project.pp need to be changed.
>>
>>
>> So is this something fixable?  Or was the EOL style changing for *.lpi
>> files done by design?
>
> lpi files are simple xml files. They are written with system lineending.
> You need to extend the code, that it can write xml files with other line
> ending, detect the line ending when reading xml, use this in xmlconfig and
> use this in TProject.
> It's not rocket science. Feel free to create a patch.
>
> I guess it makes sense for lpk files too, but it does not make much sense
> for lps files.
>
> Mattias
>

While we're at it, Mattias, do you see a problem in storing
(file&folder) paths (in configuration files) always with the same
separator instead of changing depending on the platform it's saved?

Best regards,
Flávio




More information about the Lazarus mailing list