[PATCH 11/17] nmbug-status: Normalize table HTML indentation
authorW. Trevor King <wking@tremily.us>
Mon, 3 Feb 2014 10:59:29 +0000 (02:59 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:59:37 +0000 (09:59 -0800)
c3/24c27bce5d88440e12edfa2c36d3f042c8f694 [new file with mode: 0644]

diff --git a/c3/24c27bce5d88440e12edfa2c36d3f042c8f694 b/c3/24c27bce5d88440e12edfa2c36d3f042c8f694
new file mode 100644 (file)
index 0000000..fa1e521
--- /dev/null
@@ -0,0 +1,103 @@
+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 olra.theworths.org (Postfix) with ESMTP id 34696429E48\r
+       for <notmuch@notmuchmail.org>; Mon,  3 Feb 2014 03:01:02 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id xtHHoAVvwM9q for <notmuch@notmuchmail.org>;\r
+       Mon,  3 Feb 2014 03:00:58 -0800 (PST)\r
+Received: from qmta03.westchester.pa.mail.comcast.net\r
+       (qmta03.westchester.pa.mail.comcast.net [76.96.62.32])\r
+       by olra.theworths.org (Postfix) with ESMTP id 13951429E30\r
+       for <notmuch@notmuchmail.org>; Mon,  3 Feb 2014 03:00:44 -0800 (PST)\r
+Received: from omta23.westchester.pa.mail.comcast.net ([76.96.62.74])\r
+       by qmta03.westchester.pa.mail.comcast.net with comcast\r
+       id Mmx81n0011c6gX853n0jRh; Mon, 03 Feb 2014 11:00:43 +0000\r
+Received: from odin.tremily.us ([24.18.63.50])\r
+       by omta23.westchester.pa.mail.comcast.net with comcast\r
+       id Mn0i1n00C152l3L3jn0jjw; Mon, 03 Feb 2014 11:00:43 +0000\r
+Received: from mjolnir.tremily.us (unknown [192.168.0.140])\r
+       by odin.tremily.us (Postfix) with ESMTPS id 97C79FB4D57;\r
+       Mon,  3 Feb 2014 03:00:42 -0800 (PST)\r
+Received: (nullmailer pid 702 invoked by uid 1000);\r
+       Mon, 03 Feb 2014 10:59:41 -0000\r
+From: "W. Trevor King" <wking@tremily.us>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 11/17] nmbug-status: Normalize table HTML indentation\r
+Date: Mon,  3 Feb 2014 02:59:29 -0800\r
+Message-Id:\r
+ <298b577321ba8e038922b8a70fcfe80f25b70985.1391424512.git.wking@tremily.us>\r
+X-Mailer: git-send-email 1.8.5.2.8.g0f6c0d1\r
+In-Reply-To: <cover.1391424512.git.wking@tremily.us>\r
+References: <cover.1391424512.git.wking@tremily.us>\r
+In-Reply-To: <cover.1391424512.git.wking@tremily.us>\r
+References: <cover.1391424512.git.wking@tremily.us>\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;\r
+       s=q20121106; t=1391425243;\r
+       bh=G6026Ea9iKxPYctyUNhcJNVECUYqKERSJx41AGN7wwk=;\r
+       h=Received:Received:Received:Received:From:To:Subject:Date:\r
+       Message-Id;\r
+       b=mJuCzgr3k/3Y+B+7IDUJVgVSUII0GruWC8Rk/6GmWHkTFiGoiTvboiUN0Kyf5g8aH\r
+       zNDPtsjG1JXSlcbH0qMloI2DGDTTiG+hcHuhBWIr+YLA5UAgphNmTfDidHeKKlY4fU\r
+       JklM1Er0bKVOX6WCLEZYIro84ZSVwC2BBb4siVJBXGCRZJATwYCV3suWS/EMcUTrEt\r
+       WHoRpAH2n2GSNSeaonzhZQ93daYf4ixKDON1xgTVUDK2hzVCQ+Mh/WdxdK+7TOsIyk\r
+       JKL4mLQu3tr6TYZfQ68B/Aahe9Mof8e2RjhMwqtwC1JL9MOUjorFTpEwXGiI5JLox0\r
+       OG/DYPrUn53DA==\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://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: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 03 Feb 2014 11:01:02 -0000\r
+\r
+I don't think I've ever seen '</td><td>{value}\n' before :p.  The new\r
+formatting avoids mixing tag levels and content across lines.\r
+---\r
+ devel/nmbug/nmbug-status | 14 ++++++++------\r
+ 1 file changed, 8 insertions(+), 6 deletions(-)\r
+\r
+diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status\r
+index 7778029..fdafda0 100755\r
+--- a/devel/nmbug/nmbug-status\r
++++ b/devel/nmbug/nmbug-status\r
+@@ -179,12 +179,14 @@ class HtmlPage (Page):\r
+         for thread in threads:\r
+             for message_display_data in thread:\r
+                 stream.write((\r
+-                    '<tr><td>{date}\n'\r
+-                    '</td><td>{message-id-term}\n'\r
+-                    '</td></tr>\n'\r
+-                    '<tr><td>{from}\n'\r
+-                    '</td><td>{subject}\n'\r
+-                    '</td></tr>\n'\r
++                    '<tr>\n'\r
++                    '  <td>{date}</td>\n'\r
++                    '  <td>{message-id-term}</td>\n'\r
++                    '</tr>\n'\r
++                    '<tr>\n'\r
++                    '  <td>{from}</td>\n'\r
++                    '  <td>{subject}</td>\n'\r
++                    '</tr>\n'\r
+                     ).format(**message_display_data))\r
+             if thread != threads[-1]:\r
+                 stream.write('<tr><td colspan="2"><br /></td></tr>\n')\r
+-- \r
+1.8.5.2.8.g0f6c0d1\r
+\r