Subject: | HTML::FormatText::WithLinks::AndTables |
Date: | Wed, 24 Mar 2010 16:50:55 -0700 |
To: | <bug-html-formattext-withlinks-andtables [...] rt.cpan.org> |
From: | "Jeff Hammock" <jeff_hammock [...] fulfillmentcorp.com> |
Shaun
First off thanks for the module!
When I first tried to use the module I kept getting the following error:
Can't call method "content" on an undefined value at
C:/Perl/site/lib/HTML/FormatText/WithLinks/AndTables.pm line 215.
I tracked the problem down to the first row in my HTML table that
contained only <TH> tags. In looking in the .pm I noticed the comment # no
support for <th>. sorry. on 2 lines (137 & 170). After playing around for a
while I ended up changing both lines from $tr->look_down(_tag=>'td') to
$tr->look_down(_tag=>qr/(td|th)/). Now I am no longer getting the error and
the contents of both my <TD> and <TH> tags do show up in the plain text.
However I do not know what I might be breaking with this modification.
The module will still die with the above error if an HTML table contains a
Table row without any <TR> or <TH> tags, i.e. "<TR></TR>".
Again thanks for a great little module.
Thanks
Jeff Hammock
Senior Programmer Analyst
Fulfillment Corporation of America - Corporate
11065 SW 11th St. # 300 Beaverton OR 97005
p: 503.906.4101 d: 503.906.4128 f: 503.906.4102
OREGON - CALIFORNIA - COLORADO - HAWAII
This e-mail is for the sole use of the intended recipient and contains
information belonging to sender, which is confidential. This e-mail does not
include an electronic signature and is not intended to constitute a legally
effective offer or to establish a contract. If you have received this e-mail
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the original message.