Fix escape error in BookReport.py.

svn: r8427
This commit is contained in:
Brian Matherly 2007-04-28 03:36:54 +00:00
parent d678156e25
commit 6bcc3e8c30
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2007-04-27 Brian Matherly <brian@gramps-project.org>
* src/plugins/BookReport.py: Fix escape error.
2007-04-27 Brian Matherly <brian@gramps-project.org> 2007-04-27 Brian Matherly <brian@gramps-project.org>
* src/DbLoader.py: Fix exception message. * src/DbLoader.py: Fix exception message.

View File

@ -388,7 +388,7 @@ class BookList:
else: else:
option_type = Utils.type_name(option_value) option_type = Utils.type_name(option_value)
f.write(' <option name="%s" type="%s" value="%s"/>\n' % ( f.write(' <option name="%s" type="%s" value="%s"/>\n' % (
escxml(option_name), escxml(option_type), escxml(option_value)) ) escxml(option_name), escxml(option_type), escxml(str(option_value))) )
f.write(' <person gramps_id="%s"/>\n' % f.write(' <person gramps_id="%s"/>\n' %
escxml(option_handler.get_person_id()) ) escxml(option_handler.get_person_id()) )
f.write(' <style name="%s"/>\n' % escxml(item.get_style_name()) ) f.write(' <style name="%s"/>\n' % escxml(item.get_style_name()) )