From 8835e3f13376a288abded427ddfa78d06d2af653 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Thu, 21 Mar 2013 20:45:59 +0000 Subject: [PATCH] slight tweaks to booklist format svn: r21718 --- gramps/gen/plug/report/_book.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/gramps/gen/plug/report/_book.py b/gramps/gen/plug/report/_book.py index 47d4ba38c..bb37ead68 100644 --- a/gramps/gen/plug/report/_book.py +++ b/gramps/gen/plug/report/_book.py @@ -329,9 +329,10 @@ class BookList(object): f.write(' \n' % (item.get_name(),item.get_translated_name() ) ) options = item.option_class.handler.options_dict - for option_name, option_value in options.items(): + for option_name in sorted(options.keys()): # enable a diff + option_value = options[option_name] if isinstance(option_value, (list, tuple)): - f.write(' \n') + list_index, + option_type, + value ) ) + f.write(' \n') else: option_type = type_name(option_value) value = escape(cuni(option_value)) value = value.replace('"', '"') - f.write('