mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
86b2898a9c
commit
1ead1f8b19
@ -232,7 +232,7 @@ class ItemEdit(QWidget):
|
|||||||
body = root.xpath('//*[local-name()="body"]')
|
body = root.xpath('//*[local-name()="body"]')
|
||||||
if not body:
|
if not body:
|
||||||
return error_dialog(self, _('Bad markup'),
|
return error_dialog(self, _('Bad markup'),
|
||||||
_('This book has severely broken markup, it\'s ToC cannot be edited.'), show=True)
|
_('This book has severely broken markup, its ToC cannot be edited.'), show=True)
|
||||||
for x in reversed(nasty):
|
for x in reversed(nasty):
|
||||||
body[0].insert(0, x)
|
body[0].insert(0, x)
|
||||||
self.container.commit_item(name, keep_parsed=True)
|
self.container.commit_item(name, keep_parsed=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user