I'm using DITA 's DTDs. DITA (Darwin Information Typing Architecture) is a type of xml, used to create documentation content.
I'm having trouble with a particular tag (there might be more similar cases though) <uicontrol>. This tag is used to indicate that a word is a UI element. You can use this tag in shortdesc, section, and many other DITA elements. Usually you use this tag sorrounded by other text. This XML is used to generate HTML content and PDFs.
If I run the code beautifier, it removes the spaces surrounding this tag. For example, Click <uicontrol>OK</uicontrol> becomes Click<uicontrol>OK</uicontrol>. So when I generate HTML or PDF the content lacks those spaces.
I tried modifying the setting "Keep white spaces" in XML code style, but if I do this then the beautifier doesn't wrap long sentences, and I need it to wrap them.
Maybe there is a configuration where it does not remove those white spaces and still wraps the text, but I haven't found it.
I'm attaching an XML without beautifying and one already beautified. Note that in the beautified one the text is wrapped but it removed the space between "Click" and <uicontrol>Save my file</uicontrol>.