Re: [textadept] Problem using 'HTML Tidy' to detect errors in an HTML file

From: Robert <ro....at.web.de>
Date: Thu, 20 Jan 2011 13:35:46 +0100

On Thu, Jan 20, 2011 at 1:10 PM, phayz <russelldicken....at.gmail.com> wrote:
[...]
>
> Here's a sample of HTML Tidy's output:
>> tidy -e "issue74_tobepublished.html"
> line 1 column 1 - Warning: missing <!DOCTYPE> declaration
> line 1 column 1 - Warning: inserting implicit <body>
> line 114 column 1 - Warning: discarding unexpected </thead>
> line 117 column 42 - Warning: inserting implicit <p>
> line 118 column 55 - Warning: inserting implicit <p>
>
[...]
> Am I correct and this is why the custom 'compile' command is failing?
> If not, where am I going wrong? Does anyone know of an alternate
> method of validating HTML that I can use while offline *and* online?
>
> --
> Russell
>

tidy has an option

>gnu-emacs
>Type: Boolean
>Default: no
>Example: y/n, yes/no, t/f, true/false, 1/0
>This option specifies if Tidy should change the format for reporting errors and warnings to
>a format that is more easily parsed by GNU Emacs.

e.g.: tidy -e --gnu-emacs 1 "issue74_tobepublished.html"
should give you something that is more easily parsed like the already
available examples.

Robert
Received on Thu 20 Jan 2011 - 07:35:46 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:58:46 EST