Page 1 of 1

Page breaks not working as intended

Posted: Tue Apr 09, 2019 11:48 pm
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?

Re: Page breaks not working as intended

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

Thank you,
Dan

Re: Page breaks not working as intended

Posted: Wed Apr 10, 2019 4:38 pm
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

Re: Page breaks not working as intended

Posted: Thu Apr 11, 2019 3:06 pm
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

Re: Page breaks not working as intended

Posted: Thu Apr 11, 2019 5:26 pm
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!

Re: Page breaks not working as intended

Posted: Tue Apr 16, 2019 4:11 pm
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

Re: Page breaks not working as intended

Posted: Tue Apr 16, 2019 4:44 pm
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!

Re: Page breaks not working as intended

Posted: Thu Apr 18, 2019 5:23 pm
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.

Re: Page breaks not working as intended

Posted: Tue Apr 23, 2019 2:29 pm
by Costin
Hi,

Yes, it should be implemented in version 21.1.

Regards,
Costin