Subject: | HTML::Tidy patch |
Date: | Mon, 18 Aug 2008 21:12:45 -0700 |
To: | bug-html-tidy [...] rt.cpan.org |
From: | "Patrick Michaud" <vegitron [...] gmail.com> |
Hello,
I've put together a patch to HTML::Tidy 1.08 to squelch a warning when
running this code:
#!/usr/bin/perl
use strict;
use warnings;
use HTML::Tidy;
my $tidy = HTML::Tidy->new();
my $clean = $tidy->clean("no html tags");
output: Unknown error type: line 1 column 1 - Info: <head> previously
mentioned at test.pl line 9
Here's the diff:
267a268,271
Show quoted text
> elsif ( $line =~ m/^line [\d]+ column [\d]+ - Info:/ ) {
> # Info line we don't want
>
> }
thanks!
Patrick A Michaud