Page 1 of 1

XML reformated after editing attributes in Author view

Posted: Thu Mar 04, 2021 12:20 pm
by Johann
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

Re: XML reformated after editing attributes in Author view

Posted: Thu Mar 04, 2021 1:33 pm
by cristi_talau
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