mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
DOCX Input: Fix a regression that broke conversion of documents with an index that contains fields with special page text. Fixes #1322637 [Private bug](https://bugs.launchpad.net/calibre/+bug/1322637)
This commit is contained in:
parent
f8e8d9caa0
commit
bc93263942
@ -60,7 +60,10 @@ def add_xe(xe, t):
|
||||
text = xe.get('text', '')
|
||||
pt = xe.get('page-number-text', None)
|
||||
t.text = text or ' '
|
||||
if pt:
|
||||
if False and pt:
|
||||
# We ignore the page numbering text as it breaks the merging code
|
||||
# below, which assumes every block ends with a link. I dont have the
|
||||
# time/motivation right now to fix the merging code.
|
||||
p = t.getparent().getparent()
|
||||
r = p.makeelement(expand('w:r'))
|
||||
p.append(r)
|
||||
|
Loading…
x
Reference in New Issue
Block a user