Saving map from DITA Maps Mgr removes blank lines
Posted: Sun Feb 24, 2013 10:25 am
I like having some "air" in my maps, so I separate sections of the maps with blank lines and comments, like this:
I used Eclipse Juno SR 1 (20121004-1855) with oXygen XML Author 14.1.0.v2012121012. I have selected Preferences, Author>Editor>Format>XML, Select Preserve empty lines, so that when I use Ctrl-Shift-F on the map above in the editor (Text view), the Format and Indent operation will leave the blank lines in there. So far so good.
However, if I open the map and edit it in the DITA Maps Manager (for example by dragging a new topic into the map) and then save it from the Maps Manager, the blank lines are removed and I end up with this solid block of text:How can I prevent DITA Maps Manager from removing the blank lines?
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map id="vdd" outputclass="topic-numbering draft">
<title>Version Description Document</title>
<!-- generic topics -->
<topicref href="vdd/meta/toc-introduction.dita">
<topicref href="vdd/concept/background.dita"/>
</topicref>
<!-- generic topics -->
<topicref href="poc/concept/poc-main.dita"/>
<!-- conref resources -->
<keydef href="resource/windows.dita" keys="windows" type="topic"/>
<keydef href="resource/virt.dita" keys="virt" type="concept"/>
<keydef href="release/gen075/resource/release-conrefsrc.dita" keys="release" type="topic"/>
<keydef href="release/gen075/resource/release-conrefsrc.g.dita" keys="release.g" type="topic"/>
<!-- keydef resources -->
<topicref href="release/gen075/resource/release-keydefsrc.ditamap" format="ditamap"/>
<topicref href="release/gen075/resource/release-keydefsrc.g.ditamap" format="ditamap"/>
</map>
However, if I open the map and edit it in the DITA Maps Manager (for example by dragging a new topic into the map) and then save it from the Maps Manager, the blank lines are removed and I end up with this solid block of text:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map id="vdd" outputclass="topic-numbering draft">
<title>Version Description Document</title>
<!-- generic topics -->
<topicref href="vdd/meta/toc-introduction.dita">
<topicref href="vdd/concept/background.dita"/>
</topicref>
<!-- generic topics -->
<topicref href="poc/concept/poc-main.dita"/>
<!-- conref resources -->
<keydef href="resource/windows.dita" keys="windows" type="topic"/>
<keydef href="resource/virt.dita" keys="virt" type="concept"/>
<keydef href="release/gen075/resource/release-conrefsrc.dita" keys="release" type="topic"/>
<keydef href="release/gen075/resource/release-conrefsrc.g.dita" keys="release.g" type="topic"/>
<!-- keydef resources -->
<topicref href="release/gen075/resource/release-keydefsrc.ditamap" format="ditamap"/>
<topicref href="release/gen075/resource/release-keydefsrc.g.ditamap" format="ditamap"/>
</map>