DOCX Input: Workaround for broken Word documents created by "PDF Converter Professional 8". Fixes #1690537 [Word document (docx) can not be converted to ePub](https://bugs.launchpad.net/calibre/+bug/1690537)

This commit is contained in:
Kovid Goyal 2017-05-13 18:38:01 +05:30
parent 097b35755a
commit b76a70e528
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -271,6 +271,8 @@ class Convert(object):
cname[-1] = defname
if self.docx.exists('/'.join(cname)):
name = name
if name and name.startswith('word/word') and not self.docx.exists(name):
name = name.partition('/')[2]
return name
nname = get_name(self.namespace.names['NUMBERING'], 'numbering.xml')