mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
PDF Output: Fix using column-count for body causing conversion to fail when header/footer is specified
This commit is contained in:
parent
e20e7f1d51
commit
289039b829
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user