commit:     a127f6386c36615333f071d98128b66875551f33
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 18 08:31:55 2020 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Jan 18 08:31:55 2020 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=a127f638

bin/gen-eclass-html.sh: More postprocessing for man2html.

In order to silence the W3C Validator.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 bin/gen-eclass-html.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bin/gen-eclass-html.sh b/bin/gen-eclass-html.sh
index db19761..6ecfe9c 100755
--- a/bin/gen-eclass-html.sh
+++ b/bin/gen-eclass-html.sh
@@ -112,6 +112,9 @@ for i in $(/usr/bin/qlist eclass-manpages) 
/usr/share/man/man5/ebuild.5*; do
                -e 's:<A HREF="[^"]*//localhost/[^"]*">\([^<>]*\)</A>:\1:g' \
                -e 's:<A HREF="[^"]*\${[^"]*">\([^<>]*\)</A>:\1:g' \
                -e 's:<TT>\([^<>]*\)</TT>:\1:g' \
+               -e 's:<DL COMPACT>:<DL>:g' \
+               -e 's:<TR VALIGN=top>:<TR>:g' \
+               -e '/<A NAME/{N;s:<A NAME=\(.*\)>.*</A>\(.*<H[1-6]\)>:\2 
ID=\1>:}' \
                >> "${FINAL}"
        echo -n "${FOOTER}" >> "${FINAL}"
 done

Reply via email to