FPDoc Editor in Lazarus changes encoding and line endings a as soon as XML file is opened
Original Reporter info from Mantis: avra @zeljkoavramovic
-
Reporter name: Zeljko Avramovic
Original Reporter info from Mantis: avra @zeljkoavramovic
- Reporter name: Zeljko Avramovic
Description:
FPDoc Editor in Lazarus changes encoding and line endings a as soon as XML file is opened. Encoding is changed from "ISO-8859-1" to "UTF-8" and many line endings are inserted. This means that generated FPDOC XML documentation patch will be huge and probably rejected.
Steps to reproduce:
I wanted to update sysutils FPDOC documentation from Lazarus IDE FPDOC Editor. When I clicked in Code Editor on method name (for example on HighestSetBitPos or ToHexString in TByteHelper), I see description in Lazarus FPDoc Editor and I can change them.
However as soon as I do this, original sysutils.xml encoding is changed from "ISO-8859-1" to "UTF-8", and many additional line endings get inserted (but only on specific tags - not all) as could be seen in attached screenshot. This means that after I make the needed changes, generated patch will be huge and probably rejected.
I tried to do this with 32bit fpcupdeluxe based trunks of both fpc and laz, on Win10 x64.
Mantis conversion info:
- Mantis ID: 39282
- OS: Windows
- OS Build: 10
- Build: 2021-07-13
- Platform: x64
- Version: 2.3 (SVN)