From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DE0131382C5 for ; Sat, 27 Feb 2021 15:47:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2A9A5E0968; Sat, 27 Feb 2021 15:47:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0CE9FE0968 for ; Sat, 27 Feb 2021 15:47:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6708934112E for ; Sat, 27 Feb 2021 15:47:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B781A4C2 for ; Sat, 27 Feb 2021 15:47:09 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1614440488.f8f963463000ea36cd0c36e7505e678b14395315.ulm@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: / X-VCS-Repository: proj/devmanual X-VCS-Files: Makefile X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: f8f963463000ea36cd0c36e7505e678b14395315 X-VCS-Branch: master Date: Sat, 27 Feb 2021 15:47:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c1fd9da8-45cc-421b-8e4d-e6a6550f0c3a X-Archives-Hash: 67b47b802561ad1e8a9df0ac5f1e9f2f commit: f8f963463000ea36cd0c36e7505e678b14395315 Author: Ulrich Müller gentoo org> AuthorDate: Sat Feb 27 15:41:28 2021 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sat Feb 27 15:41:28 2021 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=f8f96346 Makefile: Suppress spurious tidy warnings tidy-html5 complains about empty URI references in href which are perfectly valid HTML: https://tools.ietf.org/html/std66#section-4.4 Signed-off-by: Ulrich Müller gentoo.org> Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 618b190..5d74d88 100644 --- a/Makefile +++ b/Makefile @@ -92,7 +92,8 @@ validate: tidy: $(HTMLS) $(ECLASS_HTMLS) @status=0; \ for f in $^; do \ - output=$$(tidy -q -errors --drop-empty-elements no $${f} 2>&1) \ + output=$$(sed 's/href=""/href="index.html"/' $${f} \ + | tidy -q -errors --drop-empty-elements no 2>&1) \ || { status=$$?; echo "Failed on $${f}:"; echo "$${output}"; }; \ done; \ test $${status} -eq 0 && echo "tidy validation successful"; \