How to switch off inserting line breaks within tags

<oXygen/> general issues.
Seb
Posts: 20

How to switch off inserting line breaks within tags

Thu Sep 13, 2018 5:57 pm

How can I disable Oxygen inserting line breaks within XML tags like this:


Code: Select all

...<hi
                           rendition="#u"
                        >
Radu
Posts: 5813

Re: How to switch off inserting line breaks within tags

Fri Sep 14, 2018 12:15 pm

Hi,

I'm sorry but we do not have a special option for this. In the Oxygen Preferences->"Editor / Format / XML" page there is a "Preserve Space" list, maybe you could add to it hi[@rendition="#u"].

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Seb
Posts: 20

Re: How to switch off inserting line breaks within tags

Fri Sep 14, 2018 12:26 pm

I then would like to request this feature.

We apply transformations to the XML files after they have been edited with Oxygen. After the transformation, the line breaks within tags disappear, because they are obviously not representable in a DOM. A (Git) diff of the file before and after the transformation becomes very muddy and impractical then.
Radu
Posts: 5813

Re: How to switch off inserting line breaks within tags

Fri Sep 14, 2018 3:38 pm

Hi,

I added an issue for this. But we cannot guarantee that Oxygen's format and indent will be precisely the same as the XSLT processor's serialization.
Maybe before comparing the two files you can pass the current XML document through an XSLT copy stylesheet just to serialize them both in the same way before the comparison.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 2 guests