slight tweaks to booklist format

svn: r21719
This commit is contained in:
Paul Franklin 2013-03-21 20:46:46 +00:00
parent 64b44a16db
commit 0c46e5d91a

View File

@ -329,7 +329,8 @@ class BookList(object):
f.write(' <item name="%s" trans_name="%s">\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(' <option name="%s" value="" '
'length="%d">\n' % (