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

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

Date: Sat, 10 May 2014 12:12:47 -0700

To: notmuch@notmuchmail.org

Cc:

From: W. Trevor King


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


Thread: