From: W. Trevor King Date: Thu, 13 Feb 2014 16:47:18 +0000 (+1600) Subject: [PATCH v3 3/8] nmbug-status: Use and

markup where appropriate X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3f834980a18780ba294788494a20c31940a61cd0;p=notmuch-archives.git [PATCH v3 3/8] nmbug-status: Use and

markup where appropriate --- diff --git a/1e/b95e1d08f329085ef4209982cf6b539d9d6849 b/1e/b95e1d08f329085ef4209982cf6b539d9d6849 new file mode 100644 index 000000000..461235671 --- /dev/null +++ b/1e/b95e1d08f329085ef4209982cf6b539d9d6849 @@ -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 B9E5C431FB6 + for ; Thu, 13 Feb 2014 08:50:53 -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 3Z19ZiIMPOKs for ; + Thu, 13 Feb 2014 08:50:47 -0800 (PST) +Received: from qmta10.westchester.pa.mail.comcast.net + (qmta10.westchester.pa.mail.comcast.net [76.96.62.17]) + by olra.theworths.org (Postfix) with ESMTP id 538A9431FAE + for ; Thu, 13 Feb 2014 08:50:46 -0800 (PST) +Received: from omta15.westchester.pa.mail.comcast.net ([76.96.62.87]) + by qmta10.westchester.pa.mail.comcast.net with comcast + id Rpa71n0041swQuc5Asqm56; Thu, 13 Feb 2014 16:50:46 +0000 +Received: from odin.tremily.us ([24.18.63.50]) + by omta15.westchester.pa.mail.comcast.net with comcast + id Rsok1n013152l3L3bsolaG; Thu, 13 Feb 2014 16:48:46 +0000 +Received: from mjolnir.tremily.us (unknown [192.168.0.140]) + by odin.tremily.us (Postfix) with ESMTPS id 9B20F102DA04; + Thu, 13 Feb 2014 08:48:44 -0800 (PST) +Received: (nullmailer pid 17987 invoked by uid 1000); + Thu, 13 Feb 2014 16:47:29 -0000 +From: "W. Trevor King" +To: notmuch@notmuchmail.org +Subject: [PATCH v3 3/8] nmbug-status: Use and

markup where + appropriate +Date: Thu, 13 Feb 2014 08:47:18 -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=1392310246; + bh=AXXdg7zzBjvpMMQMtoBcDba1cKOxOS9oaqrNqAsvQxo=; + h=Received:Received:Received:Received:From:To:Subject:Date: + Message-Id; + b=bfaajG/d9EhayhlAtOq/mp1xe2ftgHWQzPrYRkbCIewiIsW7jSqMyQBwffUstiv5W + W90WdAmi0fL0ZlkVFZC77A4uBDREqB/bQjtX2Z14b7kjfppcrde2jGh191ybzMUKNT + cL7T3e1e/xQZs8Bs/8nWsL5zsJVjtA7y1ZcMJQBq1M3w2zohwyLqMHqbaLRfvVoiQK + o+5sXY4yJyJpgf10LAN4v0DZGL8zENfLw9XDSH0NSDViiBr061itgnczCfhtY+A/TR + z0VCs3ZGXAzcEnxrkoNldNng4rtBq6CS59l8kCOT+xFIoZ1b+9ngsLRUsQT4CYRxyH + D/yv+oO/rBkGQ== +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: Thu, 13 Feb 2014 16:50:53 -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 9fde20e..6a156af 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', +-- +1.8.5.2.8.g0f6c0d1 +