slight tweaks to booklist format

svn: r21718
This commit is contained in:
Paul Franklin 2013-03-21 20:45:59 +00:00
parent 93e95ad7da
commit 8835e3f133

View File

@ -329,7 +329,8 @@ class BookList(object):
f.write(' <item name="%s" trans_name="%s">\n' % f.write(' <item name="%s" trans_name="%s">\n' %
(item.get_name(),item.get_translated_name() ) ) (item.get_name(),item.get_translated_name() ) )
options = item.option_class.handler.options_dict 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)): if isinstance(option_value, (list, tuple)):
f.write(' <option name="%s" value="" ' f.write(' <option name="%s" value="" '
'length="%d">\n' % ( 'length="%d">\n' % (