From 02bf6b9aec3420504a2cff6f0d75f4b55a62224a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 12 Jun 2013 09:08:05 +0530 Subject: [PATCH] DOCX Input: Fix some manual page breaks being ignored Fixes #1188573 [Private bug](https://bugs.launchpad.net/calibre/+bug/1188573) --- src/calibre/ebooks/docx/to_html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: