[PATCH 1/2] nmbug-status: Adjust headers to start with h1
authorW. Trevor King <wking@tremily.us>
Wed, 30 Dec 2015 21:04:12 +0000 (13:04 +1600)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:50:17 +0000 (14:50 -0700)
85/f3ffa116d557d3060f02f87ae60ea8fd2a100c [new file with mode: 0644]

diff --git a/85/f3ffa116d557d3060f02f87ae60ea8fd2a100c b/85/f3ffa116d557d3060f02f87ae60ea8fd2a100c
new file mode 100644 (file)
index 0000000..49a95bd
--- /dev/null
@@ -0,0 +1,111 @@
+Return-Path: <wking@tremily.us>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id AD8896DE1A7C\r
+ for <notmuch@notmuchmail.org>; Wed, 30 Dec 2015 13:06:24 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.041\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.041 tagged_above=-999 required=5 tests=[AWL=0.042, \r
+ DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001,\r
+ SPF_PASS=-0.001] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id z1CVD4hppd6u for <notmuch@notmuchmail.org>;\r
+ Wed, 30 Dec 2015 13:06:22 -0800 (PST)\r
+Received: from resqmta-po-03v.sys.comcast.net (resqmta-po-03v.sys.comcast.net\r
+ [96.114.154.162])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id E347C6DE1A2B\r
+ for <notmuch@notmuchmail.org>; Wed, 30 Dec 2015 13:06:21 -0800 (PST)\r
+Received: from resomta-po-15v.sys.comcast.net ([96.114.154.239])\r
+ by resqmta-po-03v.sys.comcast.net with comcast\r
+ id zx6C1r0035AAYLo01x6Mfs; Wed, 30 Dec 2015 21:06:21 +0000\r
+Received: from mail.tremily.us ([73.221.72.168])\r
+ by resomta-po-15v.sys.comcast.net with comcast\r
+ id zx4K1r00X3dr3C901x4LQ9; Wed, 30 Dec 2015 21:04:21 +0000\r
+Received: from ullr.tremily.us (unknown [192.168.10.7])\r
+ by mail.tremily.us (Postfix) with ESMTPS id 7A0951B2C6BC;\r
+ Wed, 30 Dec 2015 13:04:18 -0800 (PST)\r
+Received: (nullmailer pid 25458 invoked by uid 1000);\r
+ Wed, 30 Dec 2015 21:04:25 -0000\r
+From: "W. Trevor King" <wking@tremily.us>\r
+To: notmuch@notmuchmail.org\r
+Cc: David Bremner <david@tethera.net>,\r
+ Tomi Ollila <tomi.ollila@iki.fi>, Jani Nikula <jani@nikula.org>,\r
+ Carl Worth <cworth@cworth.org>, "W. Trevor King" <wking@tremily.us>\r
+Subject: [PATCH 1/2] nmbug-status: Adjust headers to start with h1\r
+Date: Wed, 30 Dec 2015 13:04:12 -0800\r
+Message-Id:\r
+ <4691cbb60322873d2a068ed991cde940d090492a.1451509249.git.wking@tremily.us>\r
+X-Mailer: git-send-email 2.1.0.60.g85f0837\r
+In-Reply-To: <cover.1451509249.git.wking@tremily.us>\r
+References: <cover.1451509249.git.wking@tremily.us>\r
+In-Reply-To: <cover.1451509249.git.wking@tremily.us>\r
+References: <cover.1451509249.git.wking@tremily.us>\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;\r
+ s=q20140121; t=1451509581;\r
+ bh=Zyn8beD3fTNNvzKMvLFDQH3utMo/MIseI8fg27eWzLA=;\r
+ h=Received:Received:Received:Received:From:To:Subject:Date:\r
+ Message-Id;\r
+ b=aTyfi/SdiO0nJF3Pc26DgfLAez/QLB92u0GR9PxB5qqZMjJfYkl80kraMpCbAbZtN\r
+ H/FHbkKz1i2r2wLQNncVNIkPNGyobArbs6YNYcIDEAOIYkDhwn5gemtnWubIUXRYaS\r
+ uowvGWDgcCOVFGPr6mgkuBTbY4aWCQ3goXYDoHEM2EOwbTsHOGa4iQipYjAWWwbGyS\r
+ gwBcZE8jOTBqYtJXuErqXBrAjWnmuGiXoPgDEgGfc+IiM6+XNBokLQxxDYsoc0bM7/\r
+ B899F8jbXKCwH8q57DPUQHi4QDcT+xvLvwgvKISSpRsp9wyAenWmQm3C52ESzqIh+v\r
+ O1QKivt8B5YJA==\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 30 Dec 2015 21:06:24 -0000\r
+\r
+We've been leading off with h2s since 3e5fb88f (contrib/nmbug: add\r
+nmbug-status script, 2012-07-07), but the semantically-correct headers\r
+are:\r
+\r
+  <h1>{title}</h1>\r
+  ...\r
+  <h2>Views</h2>\r
+  ...\r
+  <h3>View 1</h3>\r
+  ...\r
+  <h3>View 2</h3>\r
+  ...\r
+\r
+We can always add additional CSS if the default h1 formatting is too\r
+intense.\r
+---\r
+ devel/nmbug/nmbug-status | 4 ++--\r
+ 1 file changed, 2 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status\r
+index b36b6ad..8fd736c 100755\r
+--- a/devel/nmbug/nmbug-status\r
++++ b/devel/nmbug/nmbug-status\r
+@@ -367,10 +367,10 @@ header_template = config['meta'].get('header', '''<!DOCTYPE html>\r
+   </style>\r
+ </head>\r
+ <body>\r
+-<h2>{title}</h2>\r
++<h1>{title}</h1>\r
+ {blurb}\r
+ </p>\r
+-<h3>Views</h3>\r
++<h2>Views</h2>\r
+ ''')\r
\r
+ footer_template = config['meta'].get('footer', '''\r
+-- \r
+2.1.0.60.g85f0837\r
+\r