aboutsummaryrefslogtreecommitdiffhomepage
path: root/devel
diff options
context:
space:
mode:
authorGravatar W. Trevor King <wking@tremily.us>2014-02-10 10:40:33 -0800
committerGravatar David Bremner <david@tethera.net>2014-02-10 22:53:28 -0400
commita3a3725e43d8aa8d958d486a3daa92340a18d0b9 (patch)
tree82a3c217497ad3df41d9bdd4a2f6de49e2f41061 /devel
parentc48a12365fba12a8ec0922a011a86ee15bc5cc8f (diff)
nmbug-status: Normalize table HTML indentation
I don't think I've ever seen '</td><td>{value}\n' before :p. The new formatting avoids mixing tag levels and content across lines.
Diffstat (limited to 'devel')
-rwxr-xr-xdevel/nmbug/nmbug-status14
1 files changed, 8 insertions, 6 deletions
diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status
index 57f16e25..20e24477 100755
--- a/devel/nmbug/nmbug-status
+++ b/devel/nmbug/nmbug-status
@@ -197,12 +197,14 @@ class HtmlPage (Page):
for thread in threads:
for message_display_data in thread:
stream.write((
- '<tr><td>{date}\n'
- '</td><td>{message-id-term}\n'
- '</td></tr>\n'
- '<tr><td>{from}\n'
- '</td><td>{subject}\n'
- '</td></tr>\n'
+ '<tr>\n'
+ ' <td>{date}</td>\n'
+ ' <td>{message-id-term}</td>\n'
+ '</tr>\n'
+ '<tr>\n'
+ ' <td>{from}</td>\n'
+ ' <td>{subject}</td>\n'
+ '</tr>\n'
).format(**message_display_data))
if thread != threads[-1]:
stream.write('<tr><td colspan="2"><br /></td></tr>\n')