Commits

Luke Plant  committed 0aabb00

Trimmed trailing whitespace

  • Participants
  • Parent commits b8060c5

Comments (0)

Files changed (1)

File lukeplant_me_uk/bibleverses/update.py

 class HtmlPage(object):
     def __init__(self, name, title):
         self.name, self.title = name, title
-    
+
 menupages = [
     HtmlPage('index.html', 'Home'),
     HtmlPage('schemes.html', 'Schemes'),
         write_scheme_page(scheme, make_scheme_page(scheme))
     for page, template, title in [('sources', 'sources.html', 'Sources and scripts'),
                                   ('index', 'index.html', 'Introduction')]:
-        write_page(page, {'html': loader.render_to_string(template, 
+        write_page(page, {'html': loader.render_to_string(template,
                                                           {'mediaprefix': '.',
                                                            'title': title,
                                                            'menupages': menupages,
 
 This page is autogenerated from BibleMemorisationYaml and BibleMemorisationTopicYaml - do not edit
 """)
-    
+
     def print_topic_node_wiki(node, buf, indentation_level=0):
         padding = u" " * indentation_level
         buf.write(u"%s * '''%s'''\n" % (padding, node.name))
                 buf.write(u"%s   * %s" % (padding, bible_entry_wiki(e)))
         for n in node.nodes:
             print_topic_node_wiki(n, buf, indentation_level+2)
-    
+
     # Skip the root node
     for n in topictree.nodes:
         print_topic_node_wiki(n, wiki)
                                     'topicnode_template':  "topicnode.html", # This must be dynamic for recursion to work
                                     'mediaprefix': '.',
                                     })
-        
+
     return {'wiki': wiki.getvalue(),
             'html': html}
 
 This page is autogenerated from BibleMemorisationYaml, BibleMemorisationTopicYaml and BibleMemorisationSchemeYaml - do not edit
 
 """)
-    for scheme in schemes:        
+    for scheme in schemes:
         wiki.write(u" * [wiki:%s %s]\n" % (scheme_page_name(scheme), scheme.name))
     wiki.write(u"""
 
         s.__class__ = HtmlScheme
     # end monkey patch
 
-    html = loader.render_to_string("schemes.html", 
+    html = loader.render_to_string("schemes.html",
                             {'title': u"Schemes",
                              'menupages': menupages,
                              'pagename': 'schemes.html',