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:
Kovid Goyal 2013-06-12 09:08:05 +05:30
parent a83e99485a
commit 02bf6b9aec

View File

@ -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: