From: W. Trevor King Date: Mon, 3 Feb 2014 10:59:34 +0000 (+1600) Subject: [PATCH 16/17] nmbug-status: Use and

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

markup where appropriate --- diff --git a/38/7ed3b341f95bcde4672d464b8e6319532f6cab b/38/7ed3b341f95bcde4672d464b8e6319532f6cab new file mode 100644 index 000000000..f1c511736 --- /dev/null +++ b/38/7ed3b341f95bcde4672d464b8e6319532f6cab @@ -0,0 +1,135 @@ +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 179AC429E3C + for ; Mon, 3 Feb 2014 03:03:11 -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 jcqdTbiOG6us for ; + Mon, 3 Feb 2014 03:03:04 -0800 (PST) +Received: from qmta12.westchester.pa.mail.comcast.net + (qmta12.westchester.pa.mail.comcast.net [76.96.59.227]) + by olra.theworths.org (Postfix) with ESMTP id 3AF99429E4F + for ; Mon, 3 Feb 2014 03:02:46 -0800 (PST) +Received: from omta04.westchester.pa.mail.comcast.net ([76.96.62.35]) + by qmta12.westchester.pa.mail.comcast.net with comcast + id Mn2D1n0050ldTLk5Cn2mua; Mon, 03 Feb 2014 11:02:46 +0000 +Received: from odin.tremily.us ([24.18.63.50]) + by omta04.westchester.pa.mail.comcast.net with comcast + id Mn0l1n006152l3L01n0mkK; Mon, 03 Feb 2014 11:00:46 +0000 +Received: from mjolnir.tremily.us (unknown [192.168.0.140]) + by odin.tremily.us (Postfix) with ESMTPS id 20A40FB4D61; + Mon, 3 Feb 2014 03:00:45 -0800 (PST) +Received: (nullmailer pid 714 invoked by uid 1000); + Mon, 03 Feb 2014 10:59:42 -0000 +From: "W. Trevor King" +To: notmuch@notmuchmail.org +Subject: [PATCH 16/17] nmbug-status: Use and

markup where + appropriate +Date: Mon, 3 Feb 2014 02:59:34 -0800 +Message-Id: + +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=1391425366; + bh=zGh6MHE95AwdLYS9K2jwLuRY9KZ0HR6wSmxf6FBlODU=; + h=Received:Received:Received:Received:From:To:Subject:Date: + Message-Id; + b=sz+Y23WEjliydnUB+1EAoi8Z3m65R42Kxq7BmPOr6l0HvciDP3e2FvnlEG0DyukUU + rVrs3LvbtRHwQzvDwZ97khTgSZ7/ZCjDBhz4KInOEdW4ya99deNZCrz4fJiyhuQgfd + IFyCCSwd7tuOQpVtuxZGEEgTgTVhcXroM0oeR8zDlUr45ervCI19HtnIUSzBixxVh5 + sTdYhWJw5UyRb8K9G652trSvH9BYA6HAul+IbOw8z9hvQXTkvf5JKyKs9LjZ52Zzq0 + pSllXkbeY0CxcYcJjP0+peyrKM717nbQ6SzJSTc9393e6ucgUA0Q30iuK+afy+OjeT + S7cW12F/t8okQ== +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, 03 Feb 2014 11:03:11 -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 9bdb34f..21fb481 100755 +--- a/devel/nmbug/nmbug-status ++++ b/devel/nmbug/nmbug-status +@@ -162,14 +162,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') +@@ -183,7 +187,7 @@ class HtmlPage (Page): + stream.write(( + '\n' + ' {date}\n' +- ' {message-id-term}\n' ++ ' {message-id-term}\n' + '\n' + '\n' + ' {from}\n' +@@ -219,8 +223,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 +