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.
ckabstein
Posts: 125
Joined: Fri Apr 24, 2015 12:28 pm

Line breaks and empty spaces added when merging

Post by ckabstein »

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:

Code: Select all

<p>[...] select <menucascade><uicontrol>Transport</uicontrol><uicontrol>Metronome Setup</uicontrol></menucascade> and [...] 
As soon as I edit the topic as a reviewer in Content Fusion, the XML looks like this:

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>
If the author accepts the changes, the line breaks are kept and upon merge, spaces appear between the elements (see attachment).
2022-08-05_12-05-16.png
2022-08-05_12-05-16.png (20.78 KiB) Viewed 861 times
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
oXygen XML Editor 24.1 build 2022030807
DITA OT 3.7
cristi_talau
Posts: 394
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
ckabstein
Posts: 125
Joined: Fri Apr 24, 2015 12:28 pm

Re: Line breaks and empty spaces added when merging

Post by ckabstein »

Thanks Cristian, we will check out making settings in the options.xml file.
Best,
Christina
oXygen XML Editor 24.1 build 2022030807
DITA OT 3.7
ckabstein
Posts: 125
Joined: Fri Apr 24, 2015 12:28 pm

Re: Line breaks and empty spaces added when merging

Post by ckabstein »

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
oXygen XML Editor 24.1 build 2022030807
DITA OT 3.7
Gabriel Titerlea
Site Admin
Posts: 83
Joined: Thu Jun 09, 2016 2:01 pm

Re: Line breaks and empty spaces added when merging

Post by Gabriel Titerlea »

Hello,
Unfortunately, there is no such file and the folder is also missing
That doesn't sound good, I suspect something went wrong during the installation.

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
And these 2?

Code: Select all

sudo journalctl -u content-fusion-configure

Code: Select all

sudo journalctl -u content-fusion
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
ckabstein
Posts: 125
Joined: Fri Apr 24, 2015 12:28 pm

Re: Line breaks and empty spaces added when merging

Post by ckabstein »

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
oXygen XML Editor 24.1 build 2022030807
DITA OT 3.7
Gabriel Titerlea
Site Admin
Posts: 83
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
Gabriel Titerlea
Site Admin
Posts: 83
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
ckabstein
Posts: 125
Joined: Fri Apr 24, 2015 12:28 pm

Re: Line breaks and empty spaces added when merging

Post by ckabstein »

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 :D .
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 24.1 build 2022030807
DITA OT 3.7
Gabriel Titerlea
Site Admin
Posts: 83
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
ckabstein
Posts: 125
Joined: Fri Apr 24, 2015 12:28 pm

Re: Line breaks and empty spaces added when merging

Post by ckabstein »

Thanks, Gabriel.
This sounds promising.
Best,
Christina
oXygen XML Editor 24.1 build 2022030807
DITA OT 3.7
Post Reply