mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2129 (.prc to MOBI causes TOC links to break)
This commit is contained in:
parent
802385787a
commit
af9f8a47a5
@ -358,6 +358,8 @@ class MobiReader(object):
|
|||||||
attrib['style'] = '; '.join(styles)
|
attrib['style'] = '; '.join(styles)
|
||||||
if 'filepos-id' in attrib:
|
if 'filepos-id' in attrib:
|
||||||
attrib['id'] = attrib.pop('filepos-id')
|
attrib['id'] = attrib.pop('filepos-id')
|
||||||
|
if 'name' in attrib and attrib['name'] != attrib['id']:
|
||||||
|
attrib['name'] = attrib['id']
|
||||||
if 'filepos' in attrib:
|
if 'filepos' in attrib:
|
||||||
filepos = attrib.pop('filepos')
|
filepos = attrib.pop('filepos')
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user