Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dw2pdf multipage struct output #574

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fschrempf
Copy link
Contributor

@fschrempf fschrempf commented May 8, 2021

When the dw2pdf plugin is used to export multiple pages in a single document, all the pages are rendered in a single instance
of syntax_plugin_struct_output. We want to allow this usecase and only skip repeated calls for non-dw2pdf renderings.

In conjunction with splitbrain/dokuwiki-plugin-dw2pdf#435 this fixes the struct data output in multi-page PDFs.

When the dw2pdf plugin is used to export multiple pages in a
single document, all the pages are rendered in a single instance
of syntax_plugin_struct_output. We want to allow this usecase and
only skip repeated calls for non-dw2pdf renderings.

Signed-off-by: Frieder Schrempf <[email protected]>
@splitbrain
Copy link
Member

The whole mechanism of automatically outputting struct data on pages is somewhat fragile and depending on many variables, thus I'd be hesitant to just merge this. It should at least be accompanied by unit tests, not only for the functionality here but also for all scenarios in which output is automatically added or should not be added (like in includes, sidebars, etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants