X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=t.validate-xhtml;h=8eeafcc699cdcb95a8dc9bb9825755215afb04f8;hb=fb3286d03c35f4ccfdeb89669adf47d7ce7aeebe;hp=a64399a186f7bfdb4d16def904da7ff5cae7663f;hpb=de5f30df51d15f62717ababcdde98689b2203730;p=~andy%2Ffetchmail diff --git a/t.validate-xhtml b/t.validate-xhtml index a64399a1..8eeafcc6 100755 --- a/t.validate-xhtml +++ b/t.validate-xhtml @@ -7,18 +7,18 @@ e=0 fail= IFS=$(printf '\n\t') -# smoke test validator and skip if it fails +# ditto for XHTML 1.1 (asciidoc generates that) cat - <<'_EOF' | xmllint 2>/dev/null --nonet --postvalid --noout - || exit 77 - + - </head><body></body></html> + <head><title /></head><body><p></p></body></html> _EOF for i in "${srcdir}"/*.html ; do case "$i" in - */fetchmail-man.html) continue ;; - */Mailbox-Names-UTF7.html) continue ;; + */Mailbox-Names-UTF7.html) ;; + *) continue ;; esac xmllint --postvalid --noout "$i" || { e=1 ; fail="$i${fail:+" "}$fail" ; } done