Line breaks on empty elements in Author Mode
Oxygen general issues.
-
- Posts: 23
- Joined: Mon Feb 20, 2017 8:03 pm
Line breaks on empty elements in Author Mode
I have a question regarding line break handling in oXygen Author Mode on empty elements. It is related to topic10259.html
Suppose, I have this XML:
In my framework, Author Mode actually breaks the line at that position, even though I tried these things in CSS:
I also have tried to set "//lb[@type="inWord"]' as a mixed content element in Editor > Format > XML without any effect in author mode.
How can I achieve that such elements do not result in possible line breaks?
Suppose, I have this XML:
Code: Select all
<p>This is an example of an original text, where a line break occurs in bet<lb type="inWord"/>
ween a word.</p>
Code: Select all
lb[type=inWord] {
content: "";
-oxy-display-tags: none;
}
lb[type=inWord] {
display: none;
}
How can I achieve that such elements do not result in possible line breaks?
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Line breaks on empty elements in Author Mode
Hi,
What you did in the CSS only affects the way in which the content is displayed to the end user and not the actual way in which the XML gets serialized.
In the Oxygen Preferences->Editor / Format page there is a "Line width" setting. Usually when the text in a paragraph will go over that limit, Oxygen will try to break the line at the closest whitespace. So you can increase that limit.
Or if you have the latest Oxygen version (18.1) in the Preferences->"Editor / Edit Modes / Author" page you have a "Compatibility with other tools" setting which you can probably set to "Break lines only after elements displayed as blocks".
Regards,
Radu
What you did in the CSS only affects the way in which the content is displayed to the end user and not the actual way in which the XML gets serialized.
In the Oxygen Preferences->Editor / Format page there is a "Line width" setting. Usually when the text in a paragraph will go over that limit, Oxygen will try to break the line at the closest whitespace. So you can increase that limit.
Or if you have the latest Oxygen version (18.1) in the Preferences->"Editor / Edit Modes / Author" page you have a "Compatibility with other tools" setting which you can probably set to "Break lines only after elements displayed as blocks".
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 23
- Joined: Mon Feb 20, 2017 8:03 pm
Re: Line breaks on empty elements in Author Mode
Hi Radu,
thanks for the reply.
None of these settings seem to have any effect. The word is still broken in Author mode.
Just to make sure that I have not been too unspecific about the issue, let me give you two screenshots:
Text Mode:

Author Mode:

The word "accusam" is broken in between, when it happens to be at the end of a line in Author Mode. But I do not want that behavior.
thanks for the reply.
None of these settings seem to have any effect. The word is still broken in Author mode.
Just to make sure that I have not been too unspecific about the issue, let me give you two screenshots:
Text Mode:

Author Mode:

The word "accusam" is broken in between, when it happens to be at the end of a line in Author Mode. But I do not want that behavior.
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Line breaks on empty elements in Author Mode
Hi,
Thanks for the screenshot, I thought you wanted to control the XML serialization but now I see you want the rendering to avoid visual breaking the line at that particular inline element. I agree that by default it should not do that, I will add an issue on our side for this. But I do not have a workaround for you right now.
Regards,
Radu
Thanks for the screenshot, I thought you wanted to control the XML serialization but now I see you want the rendering to avoid visual breaking the line at that particular inline element. I agree that by default it should not do that, I will add an issue on our side for this. But I do not have a workaround for you right now.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Line breaks on empty elements in Author Mode
Hi,
Yes, we always try to update the forum thread where a certain feature was requested. Also in general it's best that for each post you check the "Notify me" checkbox.
Regards,
Radu
Yes, we always try to update the forum thread where a certain feature was requested. Also in general it's best that for each post you check the "Notify me" checkbox.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Line breaks on empty elements in Author Mode
Hi,
Just to update this thread, we released Oxygen 20.1 and it should no longer attempt to break the line after inline element tags if they are followed by text.
Regards,
Radu
Just to update this thread, we released Oxygen 20.1 and it should no longer attempt to break the line after inline element tags if they are followed by text.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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