Page breaks not working as intended
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 31
- Joined: Fri Aug 24, 2018 4:27 pm
Page breaks not working as intended
Post by shannonxtreme »
Output type: PDF (DITA and CSS)
Our output has headers and footers on each page. In a section with a title and a table, adding the page-break-after: avoid; rule to the CSS doesn't seem to work, as a page break still occurs between the title and the table, leaving the title orphaned on the previous page.
XML sample:
CSS:
This applies it in the style.xml file but doesn't do anything in the PDF output. Same happens when saying instead to avoid the page break before a table in a section.
What are we doing wrong here?
Our output has headers and footers on each page. In a section with a title and a table, adding the page-break-after: avoid; rule to the CSS doesn't seem to work, as a page break still occurs between the title and the table, leaving the title orphaned on the previous page.
XML sample:
Code: Select all
<section id="section_A14D76328D3D46BFAF90699A6C230D3B">
<title> Impacted Outputs</title>
<table id="table_9C88C933C38D41C0A7C963D7C771975D">
<tgroup cols="3"><colspec colnum="1" colname="col1"
colwidth="1.5in"/><colspec colname="col02" colnum="2" colwidth="2in"/><colspec
colnum="3" colname="col2" colwidth="3.35in"/><thead>
<row>
<entry colname="col1">Output Type
</entry>
<entry colname="col02">Output Name
</entry>
<entry colname="col2">Details
</entry>
</row></thead>
<tbody>
<row>
<entry colname="col1">
<p>Reports and Files – New
</p>
</entry>
<entry colname="col02">
<ul id="ul_bgv_bwh_qfb">
<li id="li_CF0EC43F5EC14FE4B1223B06FBFCCCF0">XXXX Incoming
File
</li>
<li id="li_DCF78F615A9C434B879846697B1F3DF7">XXXX Outgoing
File
</li>
</ul>
</entry>
<entry colname="col2">
<p>The XXXX Incoming File and the XXXX Outgoing File support the exchange of XXXX information
between XXXX and XXXXX</p>
</entry>
</row>
</tbody>
</tgroup>
</table>
</section>
Code: Select all
*[class~="topic/section"] > *[class~="topic/title"] {
display: block;
text-align: left;
font-size: 10pt;
font-family: "Segoe UI", helvetica, sans-serif;
font-weight: bold;
page-break-after: avoid;
}
What are we doing wrong here?
-
- Posts: 31
- Joined: Fri Aug 24, 2018 4:27 pm
-
- Posts: 31
- Joined: Fri Aug 24, 2018 4:27 pm
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: Page breaks not working as intended
Hello,
We fixed this in our development stream and implemented the fix in the internal nightly build of oXygen. This will be included in the next official release.
If you can not wait until the official release and would like to test the build, just let us know on support@oxygenxml.com and we will provide you access to the nightly build.
Regards,
Costin
We fixed this in our development stream and implemented the fix in the internal nightly build of oXygen. This will be included in the next official release.
If you can not wait until the official release and would like to test the build, just let us know on support@oxygenxml.com and we will provide you access to the nightly build.
Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
-
- Posts: 31
- Joined: Fri Aug 24, 2018 4:27 pm
Re: Page breaks not working as intended
Post by shannonxtreme »
Hi Costin, thanks a lot!Costin wrote: ↑Tue Apr 16, 2019 4:11 pm Hello,
We fixed this in our development stream and implemented the fix in the internal nightly build of oXygen. This will be included in the next official release.
If you can not wait until the official release and would like to test the build, just let us know on support@oxygenxml.com and we will provide you access to the nightly build.
Regards,
Costin
-
- Posts: 31
- Joined: Fri Aug 24, 2018 4:27 pm
Re: Page breaks not working as intended
Post by shannonxtreme »
Hi Costin,Costin wrote: ↑Tue Apr 16, 2019 4:11 pm Hello,
We fixed this in our development stream and implemented the fix in the internal nightly build of oXygen. This will be included in the next official release.
If you can not wait until the official release and would like to test the build, just let us know on support@oxygenxml.com and we will provide you access to the nightly build.
Regards,
Costin
Would the release of this fix be in one of the maintenance builds or in the next 21.x release? If it is maintenance, we will keep an eye on the update messages sent out.
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