[PATCH 3/5] nmbug-status: Use a triple-quoted string for the footer template

W. Trevor King wking at tremily.us
Sat May 10 12:12:47 PDT 2014


Follow the pattern set by our header template and avoid the long line.
---
 devel/nmbug/nmbug-status | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status
index b4f9829..e14fecd 100755
--- a/devel/nmbug/nmbug-status
+++ b/devel/nmbug/nmbug-status
@@ -320,7 +320,12 @@ _PAGES['html'] = HtmlPage(
            encoding=_ENCODING,
            inter_message_padding='0.25em',
            border_radius='0.5em'),
-    footer='<hr><p>Generated: {date}</body>\n</html>\n'.format(date=datetime.datetime.utcnow().date())
+    footer='''
+<hr>
+<p>Generated: {date}
+</body>
+</html>
+'''.format(date=datetime.datetime.utcnow().date())
     )
 
 if args.list_views:
-- 
1.9.1.353.gc66d89d



More information about the notmuch mailing list