From: Lee <ler762@users.sourceforge.net>
Date: Sun, 12 Aug 2018 15:47:13 +0000 (-0400)
Subject: tell tidy the input is ISO-8859-1 & to not complain so much
X-Git-Tag: v_3_0_27~46
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/developer-manual/static/@default-cgi@edit-actions-list?a=commitdiff_plain;h=9dae3e9be4e16d17fe8ca8c5cb363e3b7b9896aa;p=privoxy.git

tell tidy the input is ISO-8859-1 & to not complain so much

docbook output is ISO-8859-1 and tidy just assumes ASCII
without the '-latin1' option you get things like
  line 86 column 13 - Warning: replacing invalid UTF-8 bytes (char. code U+00A9)
where docbook converts this
  <!entity  my-copy "&copy;">
  Copyright &my-copy; 2001-2017 by Privoxy Developers
to this
  Copyright © 2001-2017 by Privoxy Developers
and tidy strips out the copyright character.

with the '-latin1' option tidy leaves the copyright character as is.

options  -q --mute MISSING_ATTRIBUTE --mute TRIM_EMPTY_ELEMENT
just gets rid of verbose messages for things nobody is going to fix
---

diff --git a/GNUmakefile.in b/GNUmakefile.in
index 8edb54ec..c135eb08 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -143,7 +143,19 @@ PERL       = perl
 DOC_DIR    = doc/source
 DOC_TMP    = $(DOC_DIR)/tmp
 DOC_STATUS = @DOC_STATUS@
-TIDY       = tidy -modify -indent -wrap 120 --tidy-mark no
+TIDY       = tidy -latin1 -q -modify -indent -wrap 120 --tidy-mark no --mute MISSING_ATTRIBUTE --mute TRIM_EMPTY_ELEMENT
+# -latin1
+#     docbook output is ISO-8859-1 and tidy assumes ASCII
+# -q
+#     suppress nonessential output
+# -modify
+#     modify the original input file
+# --mute MISSING_ATTRIBUTE
+#     don't show <img> lacks "alt" attribute
+#             or <table> lacks "summary" attribute
+# --mute TRIM_EMPTY_ELEMENT
+#     don't show trimming empty <p>
+#
 RSYNC	   = rsync -av -c --chmod=D755,F644
 
 # Program to do LF->CRLF