Line breaks and empty spaces added when merging
Having trouble accessing the Oxygen Content Fusion platform or installing the server solution? Got a bug to report? Post it all here.
-
- Posts: 150
- Joined: Fri Apr 24, 2015 12:28 pm
Line breaks and empty spaces added when merging
Hi,
we're usually working without line breaks in our DITA Topics, because this can cause issues in our translation tool.
We therefore have used the following setting in the Oxygen XML preferences: Editor > XML> Elements Spacing and added "menucascade" to the Mixed Content tab.
However, now it looks as if Content Fusion doesn't like this setting. The following happens:
When I make a change in a paragraph that contains a menucascade and its child elements, upon merge there are empty spaces added between those elements.
Example
Original:
As soon as I edit the topic as a reviewer in Content Fusion, the XML looks like this:
If the author accepts the changes, the line breaks are kept and upon merge, spaces appear between the elements (see attachment).
At first, we thought that comments in Content Fusion cause this issue. However, even making a change to the text without any comments causes this.
Any ideas why this happens? Is there anything that I can configure in Oxygen or in Content Fusion that prevents this?
Normally, I would say that I just remove the setting from the preferences. However, I don't know what will happen to other files when I do this. Unfortunately, I cannot go through thousands of files to see what removing the setting would do. And I wouldn't know how without opening all of them.
Thanks,
Christina
we're usually working without line breaks in our DITA Topics, because this can cause issues in our translation tool.
We therefore have used the following setting in the Oxygen XML preferences: Editor > XML> Elements Spacing and added "menucascade" to the Mixed Content tab.
However, now it looks as if Content Fusion doesn't like this setting. The following happens:
When I make a change in a paragraph that contains a menucascade and its child elements, upon merge there are empty spaces added between those elements.
Example
Original:
Code: Select all
<p>[...] select <menucascade><uicontrol>Transport</uicontrol><uicontrol>Metronome Setup</uicontrol></menucascade> and [...]
Code: Select all
<p>[...] select <menucascade>
<uicontrol>Transport</uicontrol>
<uicontrol>Metronome Setup</uicontrol>
</menucascade> and
<?oxy_delete author="Christina" timestamp="20220805T100225+0000" content="open"?><?oxy_insert_start author="Christina" timestamp="20220805T100225+0000"?>close<?oxy_insert_end?>
the <wintitle>General</wintitle> page.</p>
2022-08-05_12-05-16.png
If I remove the spacing setting from the preferences, this doesn't happen.At first, we thought that comments in Content Fusion cause this issue. However, even making a change to the text without any comments causes this.
Any ideas why this happens? Is there anything that I can configure in Oxygen or in Content Fusion that prevents this?
Normally, I would say that I just remove the setting from the preferences. However, I don't know what will happen to other files when I do this. Unfortunately, I cannot go through thousands of files to see what removing the setting would do. And I wouldn't know how without opening all of them.
Thanks,
Christina
You do not have the required permissions to view the files attached to this post.
oXygen XML Editor 25.1 build 2023070306
DITA OT 3.7.4
DITA OT 3.7.4
-
- Posts: 517
- Joined: Thu Sep 04, 2014 4:22 pm
Re: Line breaks and empty spaces added when merging
Post by cristi_talau »
Hello,
As far as I understand, you have the "Do not break lines, do not indent" option configured for Oxygen XML Editor as described here: https://www.oxygenxml.com/doc/versions/ ... ther_tools . This causes the documents to be serialized without line breaks.
"menucascade" is congiured as Mixed Content which means that whitespace inside it is significant, including line breaks. However, since you have the "Do not break lines, do not indent" option in Oxygen XML Editor, there is no extra whitespace added during serialization. So you are fine.
The solution would be to configure serialization the same way in Content Fusion which requires to set the "author.format.compatibility" option to "1" as described here: https://www.oxygenxml.com/doc/versions/ ... tions.html .
Best,
Cristian
As far as I understand, you have the "Do not break lines, do not indent" option configured for Oxygen XML Editor as described here: https://www.oxygenxml.com/doc/versions/ ... ther_tools . This causes the documents to be serialized without line breaks.
"menucascade" is congiured as Mixed Content which means that whitespace inside it is significant, including line breaks. However, since you have the "Do not break lines, do not indent" option in Oxygen XML Editor, there is no extra whitespace added during serialization. So you are fine.
The solution would be to configure serialization the same way in Content Fusion which requires to set the "author.format.compatibility" option to "1" as described here: https://www.oxygenxml.com/doc/versions/ ... tions.html .
Best,
Cristian
-
- Posts: 150
- Joined: Fri Apr 24, 2015 12:28 pm
Re: Line breaks and empty spaces added when merging
Hi again,
According to the description in the documentation, there should be an options.xml file in the following folder: /fusion/data/config/webauthor/options.
Unfortunately, there is no such file and the folder is also missing. Do I have to create this file myself and save it in the respective folder to make it work?
Thanks,
Christina
According to the description in the documentation, there should be an options.xml file in the following folder: /fusion/data/config/webauthor/options.
Unfortunately, there is no such file and the folder is also missing. Do I have to create this file myself and save it in the respective folder to make it work?
Thanks,
Christina
oXygen XML Editor 25.1 build 2023070306
DITA OT 3.7.4
DITA OT 3.7.4
-
- Site Admin
- Posts: 95
- Joined: Thu Jun 09, 2016 2:01 pm
Re: Line breaks and empty spaces added when merging
Post by Gabriel Titerlea »
Hello,
If you run these 2 commands what do you see?
And these 2?
Also, what operating system are you using on the machine that hosts Content Fusion?
We can continue debugging this problem over e-mail, in case the logs contain sensitive information.
Best,
Gabriel
That doesn't sound good, I suspect something went wrong during the installation.Unfortunately, there is no such file and the folder is also missing
If you run these 2 commands what do you see?
Code: Select all
sudo journalctl -u content-fusion-configure | grep FATAL
Code: Select all
sudo journalctl -u content-fusion | grep FATAL
Code: Select all
sudo journalctl -u content-fusion-configure
Code: Select all
sudo journalctl -u content-fusion
We can continue debugging this problem over e-mail, in case the logs contain sensitive information.
Best,
Gabriel
-
- Posts: 150
- Joined: Fri Apr 24, 2015 12:28 pm
Re: Line breaks and empty spaces added when merging
Hi Gabriel,
I've run the commands. For the first two commands, nothing seems to happen.
For the second commands, "-- No entries --" was returned.
It seems the configuration has been set up using Ubuntu.
I will contact my colleague who set this up to have a look.
Best,
Christina
I've run the commands. For the first two commands, nothing seems to happen.
For the second commands, "-- No entries --" was returned.
It seems the configuration has been set up using Ubuntu.
I will contact my colleague who set this up to have a look.
Best,
Christina
oXygen XML Editor 25.1 build 2023070306
DITA OT 3.7.4
DITA OT 3.7.4
-
- Site Admin
- Posts: 95
- Joined: Thu Jun 09, 2016 2:01 pm
Re: Line breaks and empty spaces added when merging
Post by Gabriel Titerlea »
The systemlogs from the day Content Fusion was installed might prove useful.
Best,
Gabriel
Best,
Gabriel
-
- Site Admin
- Posts: 95
- Joined: Thu Jun 09, 2016 2:01 pm
Re: Line breaks and empty spaces added when merging
Post by Gabriel Titerlea »
Hello,
You can try to create the options.xml file in the /fusion/data/config/webauthor/options directory. Then restart Content Fusion [1].
What version of Content Fusion are you using?
Best,
Gabriel
[1] https://www.oxygenxml.com/doc/versions/ ... start.html
You can try to create the options.xml file in the /fusion/data/config/webauthor/options directory. Then restart Content Fusion [1].
What version of Content Fusion are you using?
Best,
Gabriel
[1] https://www.oxygenxml.com/doc/versions/ ... start.html
-
- Posts: 150
- Joined: Fri Apr 24, 2015 12:28 pm
Re: Line breaks and empty spaces added when merging
Hi Gabriel,
First of all: it turned out that we had been looking at the wrong server. We had evaluated Content Fusion several years ago, and that setup still existed
.
Now that we have checked the correct server, everything's fine. The options.xml file and the folder are where they should be.
We made the proposed change accordingly. This helped!
One other thing though: I had the "Do not break lines, do not indent" option selected in my preferences, but only locally, not in our project file. Our default setting is "None". But now that I've set this option back to "None", and on the Content Fusion server, it's still "Do not break lines, do not indent", we no longer have the issue.
Which lets me think: Why do we need to make this setting for Content Fusion? Is this, because there is no setting for " Editor > XML> Elements Spacing Mixed Content tab" in Content Fusion? Or is there such a setting? If there were, I wouldn't be able to find it because it's setting parameters and not selecting options, such as in Oxygen XML Editor.
Additionally, as a feature request, it would be extremely helpful to be able to set parameters for Content Fusion in the Administration UI. For security reasons, I'm not allowed to make changes on the server and need to ask our IT administrators to do it - which is extremely time-consuming.
I'm already very grateful for being able to upload our framework via the Web Author UI. Thank you so much for that.
Best regards,
Christina
First of all: it turned out that we had been looking at the wrong server. We had evaluated Content Fusion several years ago, and that setup still existed

Now that we have checked the correct server, everything's fine. The options.xml file and the folder are where they should be.
We made the proposed change accordingly. This helped!
One other thing though: I had the "Do not break lines, do not indent" option selected in my preferences, but only locally, not in our project file. Our default setting is "None". But now that I've set this option back to "None", and on the Content Fusion server, it's still "Do not break lines, do not indent", we no longer have the issue.
Which lets me think: Why do we need to make this setting for Content Fusion? Is this, because there is no setting for " Editor > XML> Elements Spacing Mixed Content tab" in Content Fusion? Or is there such a setting? If there were, I wouldn't be able to find it because it's setting parameters and not selecting options, such as in Oxygen XML Editor.
Additionally, as a feature request, it would be extremely helpful to be able to set parameters for Content Fusion in the Administration UI. For security reasons, I'm not allowed to make changes on the server and need to ask our IT administrators to do it - which is extremely time-consuming.
I'm already very grateful for being able to upload our framework via the Web Author UI. Thank you so much for that.
Best regards,
Christina
oXygen XML Editor 25.1 build 2023070306
DITA OT 3.7.4
DITA OT 3.7.4
-
- Site Admin
- Posts: 95
- Joined: Thu Jun 09, 2016 2:01 pm
Re: Line breaks and empty spaces added when merging
Post by Gabriel Titerlea »
Hello,
Content Fusion re-uses the core of Oxygen XML Editor for XML Authoring purposes. This includes the options.xml file.
But, we have not implemented a graphical user interface for modifying all the options from the options.xml file, in Content Fusion. We plan on adding more customization features in the administration page as time goes on.
I've recorded your feature request and we'll update this forum post when a solution is available.
Best,
Gabriel
Content Fusion re-uses the core of Oxygen XML Editor for XML Authoring purposes. This includes the options.xml file.
But, we have not implemented a graphical user interface for modifying all the options from the options.xml file, in Content Fusion. We plan on adding more customization features in the administration page as time goes on.
I've recorded your feature request and we'll update this forum post when a solution is available.
Best,
Gabriel
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service