Skip to content

Fix dw2pdf multipage struct output#574

Open
fschrempf wants to merge 1 commit intocosmocode:masterfrom
fschrempf:fix-dw2pdf-multipage-struct-output
Open

Fix dw2pdf multipage struct output#574
fschrempf wants to merge 1 commit intocosmocode:masterfrom
fschrempf:fix-dw2pdf-multipage-struct-output

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 <dev@fris.de>
@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