mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 05:26:15 +01:00
FB2 Output: Annotation should be wrapped in p
This commit is contained in:
parent
d02966423c
commit
0c1ca17192
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ def fb2_header(self):
|
|||
metadata['comments'] = ''
|
||||
else:
|
||||
from calibre.utils.html2text import html2text
|
||||
metadata['comments'] = '<annotation>{}</annotation>'.format(prepare_string_for_xml(html2text(comments.value.strip())))
|
||||
metadata['comments'] = '<annotation><p>{}</p></annotation>'.format(prepare_string_for_xml(html2text(comments.value).strip()))
|
||||
|
||||
header = textwrap.dedent('''\
|
||||
<FictionBook xmlns="http://www.gribuser.ru/xml/fictionbook/2.0" xmlns:l="http://www.w3.org/1999/xlink">
|
||||
|
|
|
|||
Loading…
Reference in a new issue