Hello,
I've been working with the latest version of PrinceXML and have run into a formatting issue. Basically, the Table of Contents I'm generating (in a series of nested ULs/LIs) is fairly long, and can't quite fit onto two pages. So a third page is generated - but only one line is needed.
What I'd like is for it to try to compensate by using the orphans/widows properties to try to steal some lines from the second page and 'bulk up' the third. However, 'widows' and 'orphans' only seems to apply to P tags, not ULs or LIs (as far as I can tell, unless I'm doing something wrong? I even tried putting the initial UL inside a P tag with those properties...)
(Here's an example of what's happening)
I can probably adjust my page margins slightly to accommodate for now, but should the number of pages change slightly as different content is added, the problem may happen again. So... if anyone can help, I'd appreciate it!
(NB: I've also had a similar issue with TABLES and TRs... where I'd like more than one row to appear on the next page/column if the table needs split...)
(EDIT: maybe widows/orphans just aren't working in the latest release? I found elsewhere in the output where a regular P doesn't seem to be treating it correctly...? But whether those properties work in ULs and TABLEs is another question)
Thanks!
Mike.
I've been working with the latest version of PrinceXML and have run into a formatting issue. Basically, the Table of Contents I'm generating (in a series of nested ULs/LIs) is fairly long, and can't quite fit onto two pages. So a third page is generated - but only one line is needed.
What I'd like is for it to try to compensate by using the orphans/widows properties to try to steal some lines from the second page and 'bulk up' the third. However, 'widows' and 'orphans' only seems to apply to P tags, not ULs or LIs (as far as I can tell, unless I'm doing something wrong? I even tried putting the initial UL inside a P tag with those properties...)
(Here's an example of what's happening)
I can probably adjust my page margins slightly to accommodate for now, but should the number of pages change slightly as different content is added, the problem may happen again. So... if anyone can help, I'd appreciate it!
(NB: I've also had a similar issue with TABLES and TRs... where I'd like more than one row to appear on the next page/column if the table needs split...)
(EDIT: maybe widows/orphans just aren't working in the latest release? I found elsewhere in the output where a regular P doesn't seem to be treating it correctly...? But whether those properties work in ULs and TABLEs is another question)
Thanks!
Mike.