mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
DOCX Input: Fix some manual page breaks being ignored
Fixes #1188573 [Private bug](https://bugs.launchpad.net/calibre/+bug/1188573)
This commit is contained in:
parent
a83e99485a
commit
02bf6b9aec
@ -423,7 +423,7 @@ class Convert(object):
|
|||||||
text.add_elem(BR())
|
text.add_elem(BR())
|
||||||
ans.append(text.elem)
|
ans.append(text.elem)
|
||||||
elif is_tag(child, 'w:br'):
|
elif is_tag(child, 'w:br'):
|
||||||
typ = child.get('type', None)
|
typ = get(child, 'w:type')
|
||||||
if typ in {'column', 'page'}:
|
if typ in {'column', 'page'}:
|
||||||
br = BR(style='page-break-after:always')
|
br = BR(style='page-break-after:always')
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user