From 7defbd0f184c6be323bfdf3cd6337cda06d497f7 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 4 Feb 2014 02:59:29 +1600 Subject: [PATCH] [PATCH 11/17] nmbug-status: Normalize table HTML indentation --- c3/24c27bce5d88440e12edfa2c36d3f042c8f694 | 103 ++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 c3/24c27bce5d88440e12edfa2c36d3f042c8f694 diff --git a/c3/24c27bce5d88440e12edfa2c36d3f042c8f694 b/c3/24c27bce5d88440e12edfa2c36d3f042c8f694 new file mode 100644 index 000000000..fa1e52139 --- /dev/null +++ b/c3/24c27bce5d88440e12edfa2c36d3f042c8f694 @@ -0,0 +1,103 @@ +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 34696429E48 + for ; Mon, 3 Feb 2014 03:01:02 -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 xtHHoAVvwM9q for ; + Mon, 3 Feb 2014 03:00:58 -0800 (PST) +Received: from qmta03.westchester.pa.mail.comcast.net + (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) + by olra.theworths.org (Postfix) with ESMTP id 13951429E30 + for ; Mon, 3 Feb 2014 03:00:44 -0800 (PST) +Received: from omta23.westchester.pa.mail.comcast.net ([76.96.62.74]) + by qmta03.westchester.pa.mail.comcast.net with comcast + id Mmx81n0011c6gX853n0jRh; Mon, 03 Feb 2014 11:00:43 +0000 +Received: from odin.tremily.us ([24.18.63.50]) + by omta23.westchester.pa.mail.comcast.net with comcast + id Mn0i1n00C152l3L3jn0jjw; Mon, 03 Feb 2014 11:00:43 +0000 +Received: from mjolnir.tremily.us (unknown [192.168.0.140]) + by odin.tremily.us (Postfix) with ESMTPS id 97C79FB4D57; + Mon, 3 Feb 2014 03:00:42 -0800 (PST) +Received: (nullmailer pid 702 invoked by uid 1000); + Mon, 03 Feb 2014 10:59:41 -0000 +From: "W. Trevor King" +To: notmuch@notmuchmail.org +Subject: [PATCH 11/17] nmbug-status: Normalize table HTML indentation +Date: Mon, 3 Feb 2014 02:59:29 -0800 +Message-Id: + <298b577321ba8e038922b8a70fcfe80f25b70985.1391424512.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=1391425243; + bh=G6026Ea9iKxPYctyUNhcJNVECUYqKERSJx41AGN7wwk=; + h=Received:Received:Received:Received:From:To:Subject:Date: + Message-Id; + b=mJuCzgr3k/3Y+B+7IDUJVgVSUII0GruWC8Rk/6GmWHkTFiGoiTvboiUN0Kyf5g8aH + zNDPtsjG1JXSlcbH0qMloI2DGDTTiG+hcHuhBWIr+YLA5UAgphNmTfDidHeKKlY4fU + JklM1Er0bKVOX6WCLEZYIro84ZSVwC2BBb4siVJBXGCRZJATwYCV3suWS/EMcUTrEt + WHoRpAH2n2GSNSeaonzhZQ93daYf4ixKDON1xgTVUDK2hzVCQ+Mh/WdxdK+7TOsIyk + JKL4mLQu3tr6TYZfQ68B/Aahe9Mof8e2RjhMwqtwC1JL9MOUjorFTpEwXGiI5JLox0 + OG/DYPrUn53DA== +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:01:02 -0000 + +I don't think I've ever seen '{value}\n' before :p. The new +formatting avoids mixing tag levels and content across lines. +--- + devel/nmbug/nmbug-status | 14 ++++++++------ + 1 file changed, 8 insertions(+), 6 deletions(-) + +diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status +index 7778029..fdafda0 100755 +--- a/devel/nmbug/nmbug-status ++++ b/devel/nmbug/nmbug-status +@@ -179,12 +179,14 @@ class HtmlPage (Page): + for thread in threads: + for message_display_data in thread: + stream.write(( +- '{date}\n' +- '{message-id-term}\n' +- '\n' +- '{from}\n' +- '{subject}\n' +- '\n' ++ '\n' ++ ' {date}\n' ++ ' {message-id-term}\n' ++ '\n' ++ '\n' ++ ' {from}\n' ++ ' {subject}\n' ++ '\n' + ).format(**message_display_data)) + if thread != threads[-1]: + stream.write('
\n') +-- +1.8.5.2.8.g0f6c0d1 + -- 2.26.2