Subject: | making <th> work |
Date: | Wed, 25 Jan 2012 15:39:09 -0500 |
To: | bug-HTML-FormatText-WithLinks-AndTables [...] rt.cpan.org |
From: | "Alex Aminoff, NBER" <aminoff [...] nber.org> |
Thank you for making this module, it is exactly what we need. lynx -dump
or the equivalent were not working since my code runs from apache.
Adding support for <th> is pretty easy, and it is a pretty major bug,
since if I try to process html with a table where the first row/column
is a <th> it throws an exception.
Here is my diff:
137c137
< my @cols = $tr->look_down(_tag=>qr/(td|th)/); # no
support for <th>. sorry.
---
Show quoted text
> my @cols = $tr->look_down(_tag=>'td'); # no support
for <th>. sorry.
170c170
< my @cols = $tr->look_down(_tag=>qr/(td|th)/); # no
support for <th>. sorry.
---
Show quoted text > my @cols = $tr->look_down(_tag=>'td'); # no support
for <th>. sorry.