Linebreaks in HTML export
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 10
- Joined: Thu Jun 08, 2023 6:46 pm
Linebreaks in HTML export
I have read that the <?linebreak?> processing instruction can be used to force a linebreak in published output, effectively replacing the HTML <br> element.
But, it seems to have no effect when I publish a simple DITA doc using the Oxygen WebHelp publishing template. There certainly isn't a BR at the relevant location in the published output.
But, it seems to have no effect when I publish a simple DITA doc using the Oxygen WebHelp publishing template. There certainly isn't a BR at the relevant location in the published output.
-
- Posts: 52
- Joined: Thu Mar 05, 2009 11:44 am
Re: Linebreaks in HTML export
Hi,
In Oxygen XML Editor 26.0, in a DITA topic I inserted several <?linebreak?> PI's, then I ran the default DITA Map WebHelp Responsive transformation scenario. All PI's where translated to <br> elements in the HTML output.
So my DITA topic look like this:
In Oxygen XML Editor 26.0, in a DITA topic I inserted several <?linebreak?> PI's, then I ran the default DITA Map WebHelp Responsive transformation scenario. All PI's where translated to <br> elements in the HTML output.
So my DITA topic look like this:
in.png
And the output I get is:out.png
You do not have the required permissions to view the files attached to this post.
Marius Ciolacu
Syncro Soft / Oxygen XML
Syncro Soft / Oxygen XML
-
- Posts: 10
- Joined: Thu Jun 08, 2023 6:46 pm
Re: Linebreaks in HTML export
Thanks for your support Marius,
based on you demonstrating that it "should" work, I persevered, and realised I was adding the special element in `author-mode` rather than `plain-text-mode`.
The feature does work
based on you demonstrating that it "should" work, I persevered, and realised I was adding the special element in `author-mode` rather than `plain-text-mode`.
The feature does work

-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Linebreaks in HTML export
Hi,
To add in the Author mode a processing instruction named <?linebreak?> you need to press ENTER, then choose "processing-instruction" and then inside the newly added processing instruction type "linebreak". Otherwise if you just type "<?linebreak?>" in the Author visual editing mode you get plain text.
Regards,
Radu
To add in the Author mode a processing instruction named <?linebreak?> you need to press ENTER, then choose "processing-instruction" and then inside the newly added processing instruction type "linebreak". Otherwise if you just type "<?linebreak?>" in the Author visual editing mode you get plain text.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
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