When formatting XML the behaviour is sometime heratic.
For instance, when trying to format the followinf XML snippet:
Code:
<?xml version='1.0' encoding='UTF-8'?>
<polo><pola>The Pola<poli>The Poli</poli></pola><polu>The polu</polu> </polo>
If I run the code formatter (
Tools => Code formatter => Format) from the beginning of the first line, the second line is removed.
If I run the code formatter from some where inside the second line, everything before the cursor is removed.
If I run the code formatter from the beginning of the second line, the fist line is removed and I get:
Code:
<?xml version='1.0' encoding='UTF-8'?>
<polo><pola>The Pola<poli>The Poli</poli></pola><polu>The polu</polu> </polo>
Which is nearly correct except the closing tags (</pola> </polo> are not on their own line).
So for now I will Notepad++ that formats XML correctly ... but it would be nice to get it fixed in CodeLobster IDE.
Cheers,
L@u