mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04: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
@ -203,6 +203,7 @@ class Convert(object):
|
|||||||
current.append(p)
|
current.append(p)
|
||||||
|
|
||||||
if current:
|
if current:
|
||||||
|
self.section_starts.append(current[0])
|
||||||
last = XPath('./w:body/w:sectPr')(doc)
|
last = XPath('./w:body/w:sectPr')(doc)
|
||||||
pr = PageProperties(last)
|
pr = PageProperties(last)
|
||||||
for x in current:
|
for x in current:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user