Linebreaks in HTML export
Post here questions and problems related to editing and publishing DITA content.
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.
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:
And the output I get is:
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 (414.76 KiB) Viewed 384 times
- out.png (321.8 KiB) Viewed 384 times
Marius Ciolacu
Syncro Soft / Oxygen XML
Syncro Soft / Oxygen XML
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
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