mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
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.
This commit is contained in:
parent
c48a12365f
commit
a3a3725e43
1 changed files with 8 additions and 6 deletions
|
@ -197,12 +197,14 @@ class HtmlPage (Page):
|
||||||
for thread in threads:
|
for thread in threads:
|
||||||
for message_display_data in thread:
|
for message_display_data in thread:
|
||||||
stream.write((
|
stream.write((
|
||||||
'<tr><td>{date}\n'
|
'<tr>\n'
|
||||||
'</td><td>{message-id-term}\n'
|
' <td>{date}</td>\n'
|
||||||
'</td></tr>\n'
|
' <td>{message-id-term}</td>\n'
|
||||||
'<tr><td>{from}\n'
|
'</tr>\n'
|
||||||
'</td><td>{subject}\n'
|
'<tr>\n'
|
||||||
'</td></tr>\n'
|
' <td>{from}</td>\n'
|
||||||
|
' <td>{subject}</td>\n'
|
||||||
|
'</tr>\n'
|
||||||
).format(**message_display_data))
|
).format(**message_display_data))
|
||||||
if thread != threads[-1]:
|
if thread != threads[-1]:
|
||||||
stream.write('<tr><td colspan="2"><br /></td></tr>\n')
|
stream.write('<tr><td colspan="2"><br /></td></tr>\n')
|
||||||
|
|
Loading…
Reference in a new issue