History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-19057
Type: Bug Bug
Status: Open Open
Assignee: Maxim Mossienko
Reporter: Maria Carolina Arce Terceros
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Reformat code removes spaces sorrounding tags included in text

Created: 08 Aug 08 19:54   Updated: 08 Aug 08 20:00
Component/s: XML editing

File Attachments: 1. XML File Lorem_Ipsum.xml (1 kb)
2. XML File Lorem_Ipsum_after_beatufying.xml (2 kb)
3. XML File Lorem_Ipsum_after_beatufying.xml (2 kb)


Build: 7,590


 Description  « Hide
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>.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.