1 |
commit: f8f963463000ea36cd0c36e7505e678b14395315 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 27 15:41:28 2021 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 27 15:41:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=f8f96346 |
7 |
|
8 |
Makefile: Suppress spurious tidy warnings |
9 |
|
10 |
tidy-html5 complains about empty URI references in href which are |
11 |
perfectly valid HTML: https://tools.ietf.org/html/std66#section-4.4 |
12 |
|
13 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
14 |
|
15 |
Makefile | 3 ++- |
16 |
1 file changed, 2 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/Makefile b/Makefile |
19 |
index 618b190..5d74d88 100644 |
20 |
--- a/Makefile |
21 |
+++ b/Makefile |
22 |
@@ -92,7 +92,8 @@ validate: |
23 |
tidy: $(HTMLS) $(ECLASS_HTMLS) |
24 |
@status=0; \ |
25 |
for f in $^; do \ |
26 |
- output=$$(tidy -q -errors --drop-empty-elements no $${f} 2>&1) \ |
27 |
+ output=$$(sed 's/href=""/href="index.html"/' $${f} \ |
28 |
+ | tidy -q -errors --drop-empty-elements no 2>&1) \ |
29 |
|| { status=$$?; echo "Failed on $${f}:"; echo "$${output}"; }; \ |
30 |
done; \ |
31 |
test $${status} -eq 0 && echo "tidy validation successful"; \ |