mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:18:56 +02: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
1 changed files with 2 additions and 0 deletions
|
|
@ -271,6 +271,8 @@ def get_name(rtype, defname):
|
|||
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…
Reference in a new issue