XML reformated after editing attributes in Author view

Johann
Posts: 116
Joined: Wed Jun 17, 2015 12:46 pm

XML reformated after editing attributes in Author view

Post by Johann » Thu Mar 04, 2021 12:20 pm

Hello,

I am using Author web 22.1.0.0.

When I edit an attribute value through the widget in Authoring view, it re-formats XML (break lines et new indents are visible when switching in XML view).

How can this behavior be avoided ?

I tried the option author.format.compatibility with the different values 0, 1 or 2 but I always get the same behaviour.
https://www.oxygenxml.com/doc/versions/ ... tions.html

Thanks for your help,

Johann

cristi_talau
Posts: 345
Joined: Thu Sep 04, 2014 4:22 pm

Re: XML reformated after editing attributes in Author view

Post by cristi_talau » Thu Mar 04, 2021 1:33 pm

Hello,

Some things to watch for:
  • Server should be restarted after modifying the option
  • The "Do not indent, do not break lines" option is applied only to areas affected by the change. For example, siblings of the element whose attribute was changed remain with their original formatting. The element itself should be serialized on a single line.
If these two cases do not seem to explain the behavior you are seeing, please send us a sample document so that we can reproduce the problem ourselves. If you feel that it is more appropriate, you cand send it at https://www.oxygenxml.com/techSupport.html .

Best,
Cristian

Post Reply