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:
Kovid Goyal 2014-05-25 16:32:14 +05:30
parent f8e8d9caa0
commit bc93263942

View File

@ -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)