From 3840fa47cc8dd983af4ef92dfa26700a330679f5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 7 Jan 2010 21:20:51 -0700 Subject: [PATCH] FB2 Output: Properly escape metadata before inserting it into the file --- src/calibre/ebooks/fb2/fb2ml.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/fb2/fb2ml.py b/src/calibre/ebooks/fb2/fb2ml.py index 5fd8be33f1..42feeb2330 100644 --- a/src/calibre/ebooks/fb2/fb2ml.py +++ b/src/calibre/ebooks/fb2/fb2ml.py @@ -117,9 +117,10 @@ class FB2MLizer(object): '%s ' \ ' ' \ '%s - %s\n' \ - '\n\n
' % (author_first, author_middle, + '\n\n
' % tuple(map(prepare_string_for_xml, + (author_first, author_middle, author_last, self.oeb_book.metadata.title[0].value, - __appname__, __version__) + __appname__, __version__))) def get_cover_page(self): output = u''