Page breaks not working as intended

Post here questions and problems related to editing and publishing DITA content.
shannonxtreme
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:

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>
CSS:

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;
}
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?
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: Page breaks not working as intended

Post by Dan »

What oXygen version are you using?
Can you let us know the Chemistry build ID from the transformation console?

Thank you,
Dan
shannonxtreme
Posts: 31
Joined: Fri Aug 24, 2018 4:27 pm

Re: Page breaks not working as intended

Post by shannonxtreme »

Dan wrote: Wed Apr 10, 2019 3:55 pm What oXygen version are you using?
Can you let us know the Chemistry build ID from the transformation console?

Thank you,
Dan
Hi Dan, we're on Oxygen 21.0, build 2019022207

oXygen PDF Chemistry version 21.0 build 2019-02-09T00:30:05Z
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: Page breaks not working as intended

Post by Dan »

We reproduced the problem, and we are now working to find a solution for this. We will let you know when we have a fix for that.
Many regards,
Dan
shannonxtreme
Posts: 31
Joined: Fri Aug 24, 2018 4:27 pm

Re: Page breaks not working as intended

Post by shannonxtreme »

Dan wrote: Thu Apr 11, 2019 3:06 pm We reproduced the problem, and we are now working to find a solution for this. We will let you know when we have a fix for that.
Many regards,
Dan
Thanks Dan!
Costin
Posts: 828
Joined: Mon Dec 05, 2011 6:04 pm

Re: Page breaks not working as intended

Post by Costin »

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
Costin Sandoi
oXygen XML Editor and Author Support
shannonxtreme
Posts: 31
Joined: Fri Aug 24, 2018 4:27 pm

Re: Page breaks not working as intended

Post by shannonxtreme »

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
Hi Costin, thanks a lot!
shannonxtreme
Posts: 31
Joined: Fri Aug 24, 2018 4:27 pm

Re: Page breaks not working as intended

Post by shannonxtreme »

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
Hi 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.
Costin
Posts: 828
Joined: Mon Dec 05, 2011 6:04 pm

Re: Page breaks not working as intended

Post by Costin »

Hi,

Yes, it should be implemented in version 21.1.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
Post Reply