PDF Output: Fix using column-count for body causing conversion to fail when header/footer is specified

This commit is contained in:
Kovid Goyal 2023-06-07 17:03:27 +05:30
parent e20e7f1d51
commit 289039b829
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -898,7 +898,7 @@ def add_header_footer(manager, opts, pdf_doc, container, page_number_display_map
report_progress(0.8, _('Adding headers and footers'))
name = create_skeleton(container)
root = container.parsed(name)
reset_css = 'margin: 0; padding: 0; border-width: 0; background-color: unset;'
reset_css = 'margin: 0; padding: 0; border-width: 0; background-color: unset; column-count: unset; column-width: unset;'
root.set('style', reset_css)
body = last_tag(root)
body.attrib.pop('id', None)