mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
FB2 Output: Properly escape metadata before inserting it into the file
This commit is contained in:
parent
872bda3472
commit
3840fa47cc
@ -117,9 +117,10 @@ class FB2MLizer(object):
|
|||||||
'<book-title>%s</book-title> ' \
|
'<book-title>%s</book-title> ' \
|
||||||
'</title-info><document-info> ' \
|
'</title-info><document-info> ' \
|
||||||
'<program-used>%s - %s</program-used></document-info>\n' \
|
'<program-used>%s - %s</program-used></document-info>\n' \
|
||||||
'</description>\n<body>\n<section>' % (author_first, author_middle,
|
'</description>\n<body>\n<section>' % tuple(map(prepare_string_for_xml,
|
||||||
|
(author_first, author_middle,
|
||||||
author_last, self.oeb_book.metadata.title[0].value,
|
author_last, self.oeb_book.metadata.title[0].value,
|
||||||
__appname__, __version__)
|
__appname__, __version__)))
|
||||||
|
|
||||||
def get_cover_page(self):
|
def get_cover_page(self):
|
||||||
output = u''
|
output = u''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user