Skip Menu |

This queue is for tickets about the HTML-FormatText-WithLinks-AndTables CPAN distribution.

Report information
The Basics
Id: 74392
Status: resolved
Priority: 0/
Queue: HTML-FormatText-WithLinks-AndTables

People
Owner: Nobody in particular
Requestors: aminoff [...] nber.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.04



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.