mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
097b35755a
commit
b76a70e528
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user