diff --git a/src/calibre/ebooks/fb2/fb2ml.py b/src/calibre/ebooks/fb2/fb2ml.py index a1981e01ee..d01dd494d3 100644 --- a/src/calibre/ebooks/fb2/fb2ml.py +++ b/src/calibre/ebooks/fb2/fb2ml.py @@ -185,6 +185,14 @@ class FB2MLizer(object): if key not in ('author', 'cover', 'sequence', 'keywords', 'year', 'publisher', 'isbn'): metadata[key] = prepare_string_for_xml(value) + try: + comments = self.oeb_book.metadata['description'][0] + except Exception: + metadata['comments'] = '' + else: + from calibre.utils.html2text import html2text + metadata['comments'] = '{}'.format(prepare_string_for_xml(html2text(comments.value.strip()))) + return textwrap.dedent(u''' @@ -196,6 +204,7 @@ class FB2MLizer(object): %(lang)s %(keywords)s %(sequence)s + %(comments)s %(author)s