Page 1 of 1

XML Formatting Automatically

Posted: February 9th, 2022, 8:25 pm
by JefferyD
Some XML in a CreateServiceNode service.
XML_Manual_Format.PNG
XML_Manual_Format.PNG (52.66 KiB) Viewed 1071 times
XML_Manual_Format.PNG
XML_Manual_Format.PNG (52.66 KiB) Viewed 1071 times
When viewing the XML preview of a parent node of that service and going back to edit the XML seems to retain the auto formatting from the preview.
XML_Preview_Format.PNG
XML_Preview_Format.PNG (68.41 KiB) Viewed 1071 times
XML_Preview_Format.PNG
XML_Preview_Format.PNG (68.41 KiB) Viewed 1071 times
XML_Auto_Format.PNG
XML_Auto_Format.PNG (55.01 KiB) Viewed 1071 times
XML_Auto_Format.PNG
XML_Auto_Format.PNG (55.01 KiB) Viewed 1071 times
This doesn't affect runtime initially, but any change will make the formatting persistent and potentially add unwanted whitespace to any nodes with mixed content (See PartListHTMLID in example screenshots).

Re: XML Formatting Automatically

Posted: February 9th, 2022, 8:37 pm
by CathyC
I also noticed when this happens, ctrl z for undo doesnt undo the formatting change

Re: XML Formatting Automatically

Posted: February 10th, 2022, 1:21 pm
by steve.sakhnini
a task (#10100) has been created to address this.
I will update the post once it is resolved.

Re: XML Formatting Automatically

Posted: February 18th, 2022, 9:55 am
by JustinVanRegenmorter
This has been fixed as of DesignTime revision 2154.