From patchwork Fri Oct 21 07:14:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Pfeifer X-Patchwork-Id: 6533 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp537523wrr; Fri, 21 Oct 2022 00:15:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4XPPm0wQkIezeZdFnTvwMf5+lQkFy00AKyuMVJ6Xkv3Uql7wtyoJ5KfBZllc0dZhGa+pzc X-Received: by 2002:a05:6402:2073:b0:461:5462:9dc9 with SMTP id bd19-20020a056402207300b0046154629dc9mr357610edb.52.1666336504902; Fri, 21 Oct 2022 00:15:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666336504; cv=none; d=google.com; s=arc-20160816; b=0dlDm6+QuLK6fqv5DSfeXsh4M7n+Ik+229NUIQqEplP7isX97qD8sO8f4+lTHt6c5P 1OOmkEvR8rsuBtS6sLw4f2f5XtPD9YYG6pt6qtBWIL2SxZkxQBVTe8D3wSW3Fl0/FVzi 8MOHDpRY37Xh5xBG09tEXhbxPdUIn++/mPP6j5RL7hLo37q0IpHQSVDrIgZk7yAvhwTf frGJa86MdDxEMV+pKvRLD73p20Rybgq4PYXDzwEoA7mxGYPz+pogAZGXXR4JrRC2BUVc BK4ygWybqtySSkLtBReKjDwqiymIkH6JfZmcs1rjweCBkv6oWBaLKxaRWMJ8xlrxWSEg Av0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:mime-version:subject :to:from:date:dmarc-filter:delivered-to; bh=rC4qYy/FKEIhgeptYis6F2lOtd5Z1Yi8ivU5AXGv3g4=; b=ik/wNDjAoiEK+2wulrhCo0uGg3s1PmWJm1xma3nFLYB9wzDSmJwUiarsJpX+j8rVxg Jr1UmJls/gqlMHqyl+LG1Ka++8TaShHpQxVgV8XBj0mRWqcoEIkmltlM06fhwatkrH3C 4Zl2ZydlLnJK1de55WtzBwBZdzy00Do54+ARmk8keWRNE+qChDQ4Lm44NyI0Zv0xKa3m 1rK5kyhsIf2mygUIjwEqUmQZ4dnI96UxHAAzCXptR63+qawnvAjQksuYCqrfLPCUi+Fu O8CwYI+dXUvrDuAwC/D1BlV6MuiqfyuS8nTniJC4/8OnA16BcoMqHds37TfP2pX6REH+ /VsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d16-20020aa7d690000000b004532dbfc916si536267edr.615.2022.10.21.00.15.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Oct 2022 00:15:04 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B9EA0385703A for ; Fri, 21 Oct 2022 07:15:01 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from hamza.pair.com (hamza.pair.com [209.68.5.143]) by sourceware.org (Postfix) with ESMTPS id 167303857805 for ; Fri, 21 Oct 2022 07:14:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 167303857805 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=pfeifer.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=pfeifer.com Received: from hamza.pair.com (localhost [127.0.0.1]) by hamza.pair.com (Postfix) with ESMTP id 00F4633E4A for ; Fri, 21 Oct 2022 03:14:35 -0400 (EDT) Received: from naga.localdomain (194-166-101-219.adsl.highway.telekom.at [194.166.101.219]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by hamza.pair.com (Postfix) with ESMTPSA id 8D41633E61 for ; Fri, 21 Oct 2022 03:14:34 -0400 (EDT) Date: Fri, 21 Oct 2022 09:14:31 +0200 (CEST) From: Gerald Pfeifer To: gcc-patches@gcc.gnu.org Subject: [committed] wwwdocs: style: Simplify handling of containers MIME-Version: 1.0 X-Scanned-By: mailmunge 3.09 on 209.68.5.143 Message-Id: <20221021071435.00F4633E4A@hamza.pair.com> X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747280467333822525?= X-GMAIL-MSGID: =?utf-8?q?1747280467333822525?= This is the change actually triggering most of my changes the last week. With that most of our web pages - the main page is still WIP - should now pass validator.w3.org again: Lose the trailing slash in which we needed to validate (most pages) as XHTML. With that we no longer need to differentiate between XHTML and HTML pages as much and can simplify the logic quite a bit. (Now only pages setting a MetaHTML variable ADDSTYLE receive special treatment.) --- htdocs/style.mhtml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/htdocs/style.mhtml b/htdocs/style.mhtml index 08def35e..98641c25 100644 --- a/htdocs/style.mhtml +++ b/htdocs/style.mhtml @@ -1,13 +1,12 @@ ;;; Set a couple of site-wide defaults, some of which we'll override in the ;;; following. - ;;; The pages under install/ are generated from texinfo sources. "install/.*"> - + > ;;; Redefine the tag so that we can add default headers. @@ -16,16 +15,13 @@ - - - > + - > > + %body