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 E9F50429E39 for ; Mon, 3 Feb 2014 03:01:14 -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 5QfjLkCmltWe for ; Mon, 3 Feb 2014 03:01:09 -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 C5266429E38 for ; Mon, 3 Feb 2014 03:00:45 -0800 (PST) Received: from omta02.westchester.pa.mail.comcast.net ([76.96.62.19]) by qmta10.westchester.pa.mail.comcast.net with comcast id MmyU1n0030QuhwU5An0l29; Mon, 03 Feb 2014 11:00:45 +0000 Received: from odin.tremily.us ([24.18.63.50]) by omta02.westchester.pa.mail.comcast.net with comcast id Mn0k1n00B152l3L3Nn0lYJ; Mon, 03 Feb 2014 11:00:45 +0000 Received: from mjolnir.tremily.us (unknown [192.168.0.140]) by odin.tremily.us (Postfix) with ESMTPS id 21162FB4D5D; Mon, 3 Feb 2014 03:00:44 -0800 (PST) Received: (nullmailer pid 710 invoked by uid 1000); Mon, 03 Feb 2014 10:59:42 -0000 From: "W. Trevor King" To: notmuch@notmuchmail.org Subject: [PATCH 14/17] nmbug-status: Anchor with h3 ids instead of a names Date: Mon, 3 Feb 2014 02:59:32 -0800 Message-Id: <1e702bb793444983ef762a2c584dc401a9de0050.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=1391425245; bh=rkBMv3/4iyQ9G2mFzDun89Nv7mhxkP8/5KTicVKODOM=; h=Received:Received:Received:Received:From:To:Subject:Date: Message-Id; b=fNlQy6IG/5aSHcbBJIs/FudwB1JKpxLUJGEJFXDIwoPf2LkG2SdOxjcCzrLEg+112 BiQV+Q/S1Cl2LpKe99WXEVlUcAG+zV3EbZ+rXnHRfLUeWEk49Au8VbbsyqdvnW+7Pu 7he0hmBVtVz970ybaZJSnzo66q1hmpiN8EvfdrKNOeBnbHlgKirjYMj7M6wwFl/MLS 6U+p+DB6Kvl5INhK82qXY0vW1OLAH78YhvDR4d7TpKnaHM4wyA8MJBclXSQXR5S49Q rfpAlzRglfjzXg2QVyuuBZRsQo2DDIdelldK8PJZm071sJsZ458l8THxjX07gxDQNd BxJ3wYZEzhsJA== 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:15 -0000 HTML 5 allows id attributes on all HTML elements [1], but restricts names to particular cases [2]. Attaching the id attribute to the h3 element allows us to drop the anchor a element altogether. [1]: http://www.w3.org/TR/html5/dom.html#the-id-attribute [2]: http://www.w3.org/TR/html5/index.html#attributes-1 --- devel/nmbug/nmbug-status | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status index e86ea2a..3597389 100755 --- a/devel/nmbug/nmbug-status +++ b/devel/nmbug/nmbug-status @@ -159,7 +159,7 @@ class HtmlPage (Page): stream.write('\n') def _write_view_header(self, view, stream): - stream.write('

{title}

\n'.format(**view)) + stream.write('

{title}

\n'.format(**view)) if 'comment' in view: stream.write(view['comment']) stream.write('\n') -- 1.8.5.2.8.g0f6c0d1