From e836bbd20390dcc669f90cdb06bb9ea8bb5547a4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 6 Jul 2013 19:02:00 +0530 Subject: [PATCH] DOCX Input: Fix no page break being inserted before the last section. Fixes #1198414 [Private bug](https://bugs.launchpad.net/calibre/+bug/1198414) --- src/calibre/ebooks/docx/to_html.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/ebooks/docx/to_html.py b/src/calibre/ebooks/docx/to_html.py index 01808657ea..be0576d2b9 100644 --- a/src/calibre/ebooks/docx/to_html.py +++ b/src/calibre/ebooks/docx/to_html.py @@ -203,6 +203,7 @@ class Convert(object): current.append(p) if current: + self.section_starts.append(current[0]) last = XPath('./w:body/w:sectPr')(doc) pr = PageProperties(last) for x in current: