From: W. Trevor King Date: Mon, 10 Feb 2014 18:40:33 +0000 (+1600) Subject: [PATCH v2 12/20] nmbug-status: Normalize table HTML indentation X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cb554b5e8c3550d1865ec726af2563dd2a7abc63;p=notmuch-archives.git [PATCH v2 12/20] nmbug-status: Normalize table HTML indentation --- diff --git a/d5/1d03cd5dfbd65f8a065593184658cb8d259364 b/d5/1d03cd5dfbd65f8a065593184658cb8d259364 new file mode 100644 index 000000000..4234b0869 --- /dev/null +++ b/d5/1d03cd5dfbd65f8a065593184658cb8d259364 @@ -0,0 +1,104 @@ +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 C5985429E4C + for ; Mon, 10 Feb 2014 10:42:24 -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 1K+khw+Gmu20 for ; + Mon, 10 Feb 2014 10:42:19 -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 2A5E4431E82 + for ; Mon, 10 Feb 2014 10:41:59 -0800 (PST) +Received: from omta04.westchester.pa.mail.comcast.net ([76.96.62.35]) + by qmta03.westchester.pa.mail.comcast.net with comcast + id QfVw1n00X0ldTLk53ihz5d; Mon, 10 Feb 2014 18:41:59 +0000 +Received: from odin.tremily.us ([24.18.63.50]) + by omta04.westchester.pa.mail.comcast.net with comcast + id Qihx1n00j152l3L01ihyw2; Mon, 10 Feb 2014 18:41:58 +0000 +Received: from mjolnir.tremily.us (unknown [192.168.0.140]) + by odin.tremily.us (Postfix) with ESMTPS id 5D62410167B9; + Mon, 10 Feb 2014 10:41:57 -0800 (PST) +Received: (nullmailer pid 1269 invoked by uid 1000); + Mon, 10 Feb 2014 18:40:45 -0000 +From: "W. Trevor King" +To: notmuch@notmuchmail.org +Subject: [PATCH v2 12/20] nmbug-status: Normalize table HTML indentation +Date: Mon, 10 Feb 2014 10:40:33 -0800 +Message-Id: + <243c066956b6eb4ddc3d156700f791279de6b951.1392056624.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=1392057719; + bh=ADGQVJtC5L5yQXeJAtqRiaF9w9O1U/878Cv0c8D/1OA=; + h=Received:Received:Received:Received:From:To:Subject:Date: + Message-Id; + b=myp8UsLF6+lBwBmwKFecyf2BpYOfq/FCmce2oHYW1z+obggbphl7r93AxcNi/e03z + tVCbXNWsF6iRUHi/lWs/DyAhVicdvR0BIpEqLxVaQmDUiCkV5PRm8qFv/HMq66kiLy + akDEpBPvO9d3YqLiZMc6VijH0g5tYGyVzTWTVPp38feul8sTPWmJlT9mDFrjgYoA36 + VlfTsFSLuv85DTX4w9tQd8woLQFOdIkAdvka99JzwvMDDRDkOilaBYpW1m+fOL8XoJ + OrvcoWFvErB8SF1ZSVSBgNn7TRa6HhA/9g89xBinVSvlmLm8S77U0jkUe6RswlHx5d + t9i2rAxPFegOw== +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: Mon, 10 Feb 2014 18:42:25 -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 57f16e2..20e2447 100755 +--- a/devel/nmbug/nmbug-status ++++ b/devel/nmbug/nmbug-status +@@ -197,12 +197,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 +