Hello
I'm having some strange issues with page breaks in exported pdf's at the moment and I think the No Print macro might be the issue somehow.
I use the No Print macro at the top of my confluence pages to hold a TOC, so it appears on the page but is excluded from pdf when exporting multiple pages as part of a larger document. This is the first thing on the page, below the page title. I don't use this on every page, only ones with headings on them.
If I allow Confluence to control page breaks, i.e. let it insert a page break before page titles by default, any page that has a No Print macro at the top of it will have an additional blank page inserted before it (fyi this blank page will appear before the page title, not between the page title and the No Print macro). Pages without a No Print macro on them will not have a blank page before them and will just start on a new page as you would expect.
If I add the following in the stylsheet:
.pagetitle {
page-break-before: auto;
}
the pdf will have no blank pages before the "No Print macro pages" however "normal page" will have no page break before them. I've tried other settings for page-break-before but doesn't work.
I don't know how or why the No Print macros is doing this but it's the only difference between the pages that work and those that don't as far as I can see.
Does anyone have any ideas? I want a page break before page title for all pages and no blank pages.
I suppose a way around might be to include it on every page and hide it if it's not being used maybe, but that's a bit messy so any other thoughts welcome.
Thanks very much
p.s. I'm using Atlassian Confluence 6.15.4
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.