From aa32d2579b0aa4c8c8a31a1d6060445b254b2be2 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 13 Feb 2014 08:47:18 -0800 Subject: [PATCH] nmbug-status: Use and

markup where appropriate * Wrap free text in

tags. * Convert

to

for query strings. * Wrap message-id-term (id:"...") in . The tags get nicer default markup (smaller monospace font) for notmuch query terms [1]. The

tags don't have much effect without attached CSS, but bare text (phrasing content [2]) in (which expects flow content [3,4]) feels wrong. [1]: http://www.w3.org/TR/html5/text-level-semantics.html#the-code-element [2]: http://www.w3.org/TR/html5/dom.html#phrasing-content-1 [3]: http://www.w3.org/TR/html5/dom.html#flow-content-1 [4]: http://www.w3.org/TR/html5/sections.html#the-body-element --- devel/nmbug/nmbug-status | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status index 9fde20ec..6a156af2 100755 --- a/devel/nmbug/nmbug-status +++ b/devel/nmbug/nmbug-status @@ -183,14 +183,18 @@ class HtmlPage (Page): def _write_view_header(self, view, stream): stream.write('

{title}

\n'.format(**view)) + stream.write('

\n') if 'comment' in view: stream.write(view['comment']) stream.write('\n') for line in [ 'The view is generated from the following query:', - '

', + '

', + '

', + ' ', view['query-string'], - '

', + ' ', + '

', ]: stream.write(line) stream.write('\n') @@ -204,7 +208,7 @@ class HtmlPage (Page): stream.write(( '\n' ' {date}\n' - ' {message-id-term}\n' + ' {message-id-term}\n' '\n' '\n' ' {from}\n' @@ -243,8 +247,10 @@ _PAGES['html'] = HtmlPage(

Notmuch Patches

+

Generated: {date}
For more infomation see nmbug +

Views

'''.format(date=datetime.datetime.utcnow().date()), footer='\n\n',