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('