[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: Problems with wml_aux_tidy
- From: Denis Barbier <nospam@thanx>
- Date: Tue, 12 Oct 1999 00:28:02 +0200 (CET)
On Mon, 11 Oct 1999, Jan Ulrich Hasecke wrote:
> Hello,
>
> I run tidy after wml-izing with
>
> -E ~/bin/epilog
>
> in .wmlrc
>
> epilog is a skript:
>
> #! /bin/sh
> /opt/wml/lib/exec/wml_aux_tidy -mu $1
>
> When I use it, I get the following errormessage
>
> $ wmk -f 1999/19991011.wml
> /opt/wml/bin/wml -n -o '(ALL-LANG_*)uLANG_DA:19991011.html' -o '(ALL-LANG_*)uLANG_HE:../heute/index.html' 19991011.wml
> -\|/-\|/-
> Tidy (vers 26th July 1999) Parsing "19991011.html"
> line 78 column 1 - Warning: trimming empty <p>
> line 99 column 1 - Warning: trimming empty <p>
> line 153 column 1 - Warning: trimming empty <p>
> line 263 column 1 - Warning: trimming empty <p>
> line 265 column 1 - Warning: html doctype doesn't match content
>
> "19991011.html" appears to be HTML 4.0 Transitional
> 5 warnings/errors were found!
>
> HTML & CSS specifications are available from http://www.w3.org/
> To learn more about Tidy see http://www.w3.org/People/Raggett/tidy/
> Please send bug reports to Dave Raggett care of <html-tidy@w3.org>
> Lobby your company to join W3C, see http://www.w3.org/Consortium
> ** WML:Error: epilog failed: /home/juh/bin/epilog 19991011.html
> ** WMk:Break: Error in WML (rc=256)
>
> Tidy has run sucessfully but wmk stops, so I cannot run wnk on
> multiple files.
No, tidy has not run sucessfully. From wml_aux_tidy(1)
If you want to run Tidy from a Perl or other scripting language you
may find it of value to inspect the result returned by Tidy when it
exits: 0 if everything is fine, 1 if there were warnings and 2 if
there were errors.
So you could rewrite your epilog script this way if you want to skip
warnings:
#! /bin/sh
/opt/wml/lib/exec/wml_aux_tidy -mu $1
[ $? -ne 2 ]
--
Denis Barbier
WML Maintainer
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com