mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-19 04:04:59 +01:00
DOCX Input: Fix no page break being inserted before the last section.
Fixes #1198414 [Private bug](https://bugs.launchpad.net/calibre/+bug/1198414)
This commit is contained in:
parent
0711e03bd4
commit
e836bbd203
1 changed files with 1 additions and 0 deletions
|
|
@ -203,6 +203,7 @@ def read_page_properties(self, doc):
|
|||
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue