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

Mattias Gärtner nc-gaertnma at netcologne.de
Tue Feb 23 12:52:06 CET 2010


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






More information about the Lazarus mailing list