Enter a new paragraph line without spacing
Questions about XML that are not covered by the other forums should go here.
Enter a new paragraph line without spacing
Hi,
Could you please advise on how to insert a line break without spacing in oxygen xml, ie like the Shift+Enter shortcut in msword.
Note the only way I have found to insert a carriage return is to insert a new paragraph, which obviously generates the inter-paragraph spacing set in the css...
Thanks in advance!
Olivier
Could you please advise on how to insert a line break without spacing in oxygen xml, ie like the Shift+Enter shortcut in msword.
Note the only way I have found to insert a carriage return is to insert a new paragraph, which obviously generates the inter-paragraph spacing set in the css...
Thanks in advance!
Olivier
Re: Enter a new paragraph line without spacing
Hi Olivier,
There is no "soft line break" element in the DITA XML standard which would be the equivalent of <br>.
There is a special processing instruction "<?linebreak?>" which should be already handled by the publishing stylesheets.
For example in a DITA topic in the middle of a paragraph if working in the Author mode you press ENTER, select "processing-instruction" and then insert linebreak inside the processing instruction. Then publish and see how that looks like.
Regards,
Radu
There is no "soft line break" element in the DITA XML standard which would be the equivalent of <br>.
There is a special processing instruction "<?linebreak?>" which should be already handled by the publishing stylesheets.
For example in a DITA topic in the middle of a paragraph if working in the Author mode you press ENTER, select "processing-instruction" and then insert linebreak inside the processing instruction. Then publish and see how that looks like.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: Enter a new paragraph line without spacing
Thanks Radu,
I guess I should have specified that I was trying to enter table heading content on multiple lines whilst avoiding the spacing which <p> elements naturally generate between them.
I found a solution using a <div> element:
instead of
Works fine for table headers.
Note: Your solution returns the following error in a usual paragraph:
The processing instruction must begin with the name of the target
I guess I should have specified that I was trying to enter table heading content on multiple lines whilst avoiding the spacing which <p> elements naturally generate between them.
I found a solution using a <div> element:
Code: Select all
<entry>Unused <div>(31-9)</div></entry>
Code: Select all
<entry><p>Unused </p>
<p>(31-9)</p></entry>
Note: Your solution returns the following error in a usual paragraph:
The processing instruction must begin with the name of the target
Re: Enter a new paragraph line without spacing
Hi,
Right, using the <div> element to break the line is not semantically correct but it works
About this remark:
I'm attaching an animated gif.
Regards,
Radu
Right, using the <div> element to break the line is not semantically correct but it works
About this remark:
You probably did something wrong when inserting it.Note: Your solution returns the following error in a usual paragraph:
The processing instruction must begin with the name of the target
I'm attaching an animated gif.
- linebreak.gif (238.72 KiB) Viewed 1263 times
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “General XML Questions”
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