correct indentation in books.xml

This commit is contained in:
Paul Franklin
2016-02-19 03:10:55 -08:00
parent 69eeca4c47
commit b22de39a25

View File

@@ -464,10 +464,10 @@ class BookList(object):
for name in sorted(self.bookmap): # enable a diff of archived copies
book = self.get_book(name)
dbname = book.get_dbname()
f.write('<book name="%s" database="%s">\n' % (name, dbname) )
f.write(' <book name="%s" database="%s">\n' % (name, dbname) )
for item in book.get_item_list():
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
for option_name in sorted(options.keys()): # enable a diff
option_value = options[option_name]
@@ -516,7 +516,7 @@ class BookList(object):
f.write(' <format name="%s"/>\n' % book.get_format_name() )
if book.get_output():
f.write(' <output name="%s"/>\n' % book.get_output() )
f.write('</book>\n')
f.write(' </book>\n')
f.write('</booklist>\n')
f.close()