mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 11:06:20 +01:00
...
This commit is contained in:
parent
86b2898a9c
commit
1ead1f8b19
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ def current_changed(self, item):
|
|||
body = root.xpath('//*[local-name()="body"]')
|
||||
if not body:
|
||||
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):
|
||||
body[0].insert(0, x)
|
||||
self.container.commit_item(name, keep_parsed=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue