From: W. Trevor King Date: Mon, 10 Feb 2014 18:40:38 +0000 (+1600) Subject: [PATCH v2 17/20] nmbug-status: Use and

markup where appropriate X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d459e1594e1ad5266ccf033479f936c6a540c344;p=notmuch-archives.git [PATCH v2 17/20] nmbug-status: Use and

markup where appropriate --- diff --git a/9e/9c03bbb2f0af959159c7470ea0600ebca204ee b/9e/9c03bbb2f0af959159c7470ea0600ebca204ee new file mode 100644 index 000000000..499d8323c --- /dev/null +++ b/9e/9c03bbb2f0af959159c7470ea0600ebca204ee @@ -0,0 +1,136 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 19748431FBD + for ; Mon, 10 Feb 2014 10:44:57 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id l5jQKBZxEQEn for ; + Mon, 10 Feb 2014 10:44:51 -0800 (PST) +Received: from qmta13.westchester.pa.mail.comcast.net + (qmta13.westchester.pa.mail.comcast.net [76.96.59.243]) + by olra.theworths.org (Postfix) with ESMTP id 257BD429E3A + for ; Mon, 10 Feb 2014 10:44:01 -0800 (PST) +Received: from omta08.westchester.pa.mail.comcast.net ([76.96.62.12]) + by qmta13.westchester.pa.mail.comcast.net with comcast + id Qck71n0030Fqzac5Dik1Ac; Mon, 10 Feb 2014 18:44:01 +0000 +Received: from odin.tremily.us ([24.18.63.50]) + by omta08.westchester.pa.mail.comcast.net with comcast + id Qii01n004152l3L3Uii0pY; Mon, 10 Feb 2014 18:42:01 +0000 +Received: from mjolnir.tremily.us (unknown [192.168.0.140]) + by odin.tremily.us (Postfix) with ESMTPS id 06C5810167C3; + Mon, 10 Feb 2014 10:42:00 -0800 (PST) +Received: (nullmailer pid 1281 invoked by uid 1000); + Mon, 10 Feb 2014 18:40:46 -0000 +From: "W. Trevor King" +To: notmuch@notmuchmail.org +Subject: [PATCH v2 17/20] nmbug-status: Use and

markup where + appropriate +Date: Mon, 10 Feb 2014 10:40:38 -0800 +Message-Id: + <9881bd7f6af6260d9a478feddd3c2d87c5b4049a.1392056624.git.wking@tremily.us> +X-Mailer: git-send-email 1.8.5.2.8.g0f6c0d1 +In-Reply-To: +References: +In-Reply-To: +References: +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; + s=q20121106; t=1392057841; + bh=r3GIskA8uH+3Z6WZWrusNEgSo9KO3Xyz95l3Y+Jag8k=; + h=Received:Received:Received:Received:From:To:Subject:Date: + Message-Id; + b=Ua50qL4YyhJmwmdQWDnnots+TYbmg73NN238FPEpKSAp4b05dc+l5zYr2z6W8gmas + PmJ8dqxMNDpmSXcBD2osFiy44KVS021ZgEwCulV2Yhh0vLuKx+LIx36wQm8PxL5ytF + tU0Sse7ASgT7rCzmZZUb0J8BHvcJQ+uVad5texFIPmVCSiLvcZb02nN5dCrRbTnOSI + fqi9mv1tO2fOy5X96HHZZvEvc+aaq9WCAkgkQqp0lrCoLPzf9MdoS7r0lXF5nETGe8 + 1HBSrlBhmgFJy3ajaOMwDjoj01KzUlrroxnHGtnblqdFb4xtulQtLw9UE69t/3kPRn + ZDRoXq0MPcjdA== +Cc: Tomi Ollila +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 10 Feb 2014 18:44:57 -0000 + +* 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 989d065..c45b763 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(), + encoding=_ENCODING), +-- +1.8.5.2.8.g0f6c0d1 +