diff --git a/src/calibre/ebooks/docx/to_html.py b/src/calibre/ebooks/docx/to_html.py index a5cc3d9447..379faf0639 100644 --- a/src/calibre/ebooks/docx/to_html.py +++ b/src/calibre/ebooks/docx/to_html.py @@ -423,7 +423,7 @@ class Convert(object): text.add_elem(BR()) ans.append(text.elem) elif is_tag(child, 'w:br'): - typ = child.get('type', None) + typ = get(child, 'w:type') if typ in {'column', 'page'}: br = BR(style='page-break-after:always') else: