How to prevent line breaks with "codeblock"?
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 663
- Joined: Wed Oct 16, 2019 3:47 pm
Re: How to prevent line breaks with "codeblock"?
Post by julien_lacour »
Hello,
You should be able to do the trick by using the following CSS selector:
Regards,
Julien
You should be able to do the trick by using the following CSS selector:
Code: Select all
*[class~='pr-d/codeblock'] {
page-break-inside:avoid;
}
Julien
-
- Posts: 102
- Joined: Fri Oct 19, 2018 2:19 am
Re: How to prevent line breaks with "codeblock"?
Thanks for the info. Now I'm having a difficult time trying to identify which ".css" file to add this code snippet.
Is there a default .css that Oxygen uses for PDF? Or do I need to create a new custom .css for PDF?
Is there a default .css that Oxygen uses for PDF? Or do I need to create a new custom .css for PDF?
-
- Posts: 922
- Joined: Thu May 02, 2019 2:32 pm
Re: How to prevent line breaks with "codeblock"?
Post by chrispitude »
To get started, you can create a my.css file in the root of your project directory with only that property.
If you're using the default "DITA Map PDF - based on HTML5 & CSS" transformation, make a duplicate of it so you can edit the settings.
Now set the args.css parameter to ${pdu}/my.css:
image.png
You do not have the required permissions to view the files attached to this post.
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