as you see I changed the post topic. The problem occurs under the following conditions:
- add the line break (with Enter)
- then every time after Ctrl+Shift+P, an additional line break is being added
The following setting has obviously an effect on this:
Options > Preferences > Editor > XML > Line Break Tab
I set it to:
Element name/XPath: '//*' with both Before/After checked options.
The reason for this was that for some elements no indentation worked. e.g. for
Code: Select all
<supplied xml:id="supplied_3735" ><dynam xml:id="dynam_3735" staff="4" startid="#note_3630" doxml.id="d28e257">f</dynam>
I wanted the
to be on a new line. So probably the solution was not the best. Can you recommend something better?
NB: "Indent inline elements" option is checked.
Do you mean that at some point consecutive new lines were added in this specific XML comment?
From what I know Oxygen would sometimes add line breaks and indenting between XML tags and we have the behavior explained here:
https://www.oxygenxml.com/doc/versions/ ... odes2.html
but Oxygen should never insert such consecutive white spaces inside XML comments when editing the document. Can you reproduce the problem consistently on your side using Oxygen? If you are using a remote storage system (like a CMS) it may be possible that the storage system may have added those extra spaces in the XML comment.