Removing White Spaces added in text mode
Posted: Tue Jan 26, 2016 6:58 pm
Hello
we are presently trying to automate the publication of our documentation to Confluence. Source files are dita xml created in Oxygen.
When doing the magic to publish our files on Confluence, we have serious line brake issues.
When I look in author mode, all seems fine, but when we look in text mode we notice that several white spaces are added, creating line brakes.
In text mode: we see that white spaces are added in tags.
<?xml version="1.0" ?><!DOCTYPE task PUBLIC '-//OASIS//DTD DITA Task//EN' 'task.dtd'><task id="task_bsz_x2p_dq">
<title>Getting Started</title>
<taskbody>
<steps id="steps_p3q_qny_2q">
<step>
<cmd>Make sure the WAN network interface (either WAN, ETH1, Ethernet, Network or
ETH5 depending on your model) of your Mediatrix unit is connected to the <ph
otherprops="LAN">router/switch to your LAN</ph>
<ph otherprops="Edge">WAN/Internet</ph>.</cmd>
</step>
<step>
<cmd>Make sure the second Ethernet connector (either LAN, ETH2 or Computer depending
on your model) of your Mediatrix unit is connected to the computer.</cmd>
</step>
<step>
<cmd>Log on to the Mediatrix unit Management interface.</cmd>
<info>
<note type="note">If you are using your Mediatrix unit for the first time, refer
to its Mediatrix unit Quick Start guide. </note>
</info>
</step>
</steps>
</taskbody>
</task>
And this is how it comes out in Confluence becasue of these white spaces:
Getting Started
Steps
Make sure the WAN network interface (either WAN, ETH1, Ethernet, Network or
ETH5 depending on your model) of your Mediatrix unit is connected to the
router/switch to your LAN
WAN/Internet
.
Make sure the second Ethernet connector (either LAN, ETH2 or Computer depending
on your model) of your Mediatrix unit is connected to the computer.
Log on to the Mediatrix unit Management interface.
If you are using your Mediatrix unit for the first time, refer to its Mediatrix unit Quick Start guide.
is there a way to remove the white spaces to have something like:
[Codebox=]<?xml version="1.0" ?><!DOCTYPE task PUBLIC '-//OASIS//DTD DITA Task//EN' 'task.dtd'><task id="task_bsz_x2p_dq">
<title>Getting Started</title>
<taskbody>
<steps id="steps_p3q_qny_2q">
<step>
<cmd>Make sure the WAN network interface (either WAN, ETH1, Ethernet, Network or ETH5 depending on your model) of your Mediatrix unit is connected to the <ph otherprops="LAN">router/switch to your LAN</ph><ph otherprops="Edge">WAN/Internet</ph>.</cmd>
</step>
<step>
<cmd>Make sure the second Ethernet connector (either LAN, ETH2 or Computer depending on your model) of your Mediatrix unit is connected to the computer.</cmd>
</step>
<step>
<cmd>Log on to the Mediatrix unit Management interface.</cmd>
<info>
<note type="note">If you are using your Mediatrix unit for the first time, refer to its Mediatrix unit Quick Start guide. </note>
</info>
</step>
</steps>
</taskbody>
</task>
[/Codebox]
Best Regards
we are presently trying to automate the publication of our documentation to Confluence. Source files are dita xml created in Oxygen.
When doing the magic to publish our files on Confluence, we have serious line brake issues.
When I look in author mode, all seems fine, but when we look in text mode we notice that several white spaces are added, creating line brakes.
In text mode: we see that white spaces are added in tags.
<?xml version="1.0" ?><!DOCTYPE task PUBLIC '-//OASIS//DTD DITA Task//EN' 'task.dtd'><task id="task_bsz_x2p_dq">
<title>Getting Started</title>
<taskbody>
<steps id="steps_p3q_qny_2q">
<step>
<cmd>Make sure the WAN network interface (either WAN, ETH1, Ethernet, Network or
ETH5 depending on your model) of your Mediatrix unit is connected to the <ph
otherprops="LAN">router/switch to your LAN</ph>
<ph otherprops="Edge">WAN/Internet</ph>.</cmd>
</step>
<step>
<cmd>Make sure the second Ethernet connector (either LAN, ETH2 or Computer depending
on your model) of your Mediatrix unit is connected to the computer.</cmd>
</step>
<step>
<cmd>Log on to the Mediatrix unit Management interface.</cmd>
<info>
<note type="note">If you are using your Mediatrix unit for the first time, refer
to its Mediatrix unit Quick Start guide. </note>
</info>
</step>
</steps>
</taskbody>
</task>
And this is how it comes out in Confluence becasue of these white spaces:
Getting Started
Steps
Make sure the WAN network interface (either WAN, ETH1, Ethernet, Network or
ETH5 depending on your model) of your Mediatrix unit is connected to the
router/switch to your LAN
WAN/Internet
.
Make sure the second Ethernet connector (either LAN, ETH2 or Computer depending
on your model) of your Mediatrix unit is connected to the computer.
Log on to the Mediatrix unit Management interface.
If you are using your Mediatrix unit for the first time, refer to its Mediatrix unit Quick Start guide.
is there a way to remove the white spaces to have something like:
[Codebox=]<?xml version="1.0" ?><!DOCTYPE task PUBLIC '-//OASIS//DTD DITA Task//EN' 'task.dtd'><task id="task_bsz_x2p_dq">
<title>Getting Started</title>
<taskbody>
<steps id="steps_p3q_qny_2q">
<step>
<cmd>Make sure the WAN network interface (either WAN, ETH1, Ethernet, Network or ETH5 depending on your model) of your Mediatrix unit is connected to the <ph otherprops="LAN">router/switch to your LAN</ph><ph otherprops="Edge">WAN/Internet</ph>.</cmd>
</step>
<step>
<cmd>Make sure the second Ethernet connector (either LAN, ETH2 or Computer depending on your model) of your Mediatrix unit is connected to the computer.</cmd>
</step>
<step>
<cmd>Log on to the Mediatrix unit Management interface.</cmd>
<info>
<note type="note">If you are using your Mediatrix unit for the first time, refer to its Mediatrix unit Quick Start guide. </note>
</info>
</step>
</steps>
</taskbody>
</task>
[/Codebox]
Best Regards