lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] Error-reporting


From: Thomas Dickey
Subject: Re: [Lynx-dev] Error-reporting
Date: Thu, 23 Feb 2017 20:16:33 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Feb 23, 2017 at 04:00:23PM -0500, Hal.sz S.ndor wrote:
> Has Lynx a mode wherin it reports such errors:
> <p> <b> </p> <p> </b>
> ...?

no - sometimes it logs problems with nesting in the trace file,
but I don't see it with this example.

Mostly I use tidy in a filter that makes the messages easy to step
through with vile's error-finder:

#!/bin/sh
# patterns like
#       line 2267 column 1 - Warning: trimming empty <dt>
for i in $*
do
tidy -e $i 2>&1 | egrep '^line ' |sed -e 's%^line %'$i':%' -e 's% column 
\([0-9]\+\)%:\1:%'
done

/tmp/foo.html:1:1: - Warning: missing <!DOCTYPE> declaration
/tmp/foo.html:1:1: - Warning: inserting implicit <body>
/tmp/foo.html:1:5: - Warning: missing </b> before </p>
/tmp/foo.html:1:17: - Warning: inserting implicit <b>
/tmp/foo.html:1:1: - Warning: inserting missing 'title' element
/tmp/foo.html:1:5: - Warning: trimming empty <b>
/tmp/foo.html:1:1: - Warning: trimming empty <p>
/tmp/foo.html:1:17: - Warning: trimming empty <b>

(thinking about it, I should quote the "$i" - but hadn't changed the
script since I wrote it in 2003...)

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]