Skip Menu |

This queue is for tickets about the DBIx-XHTML_Table CPAN distribution.

Report information
The Basics
Id: 11666
Status: resolved
Priority: 0/
Queue: DBIx-XHTML_Table

People
Owner: JEFFA [...] cpan.org
Requestors: tshinnic [...] io.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.36
Fixed in: 1.38



Subject: cell data containing newlines does not render
_build_body_row() has a check at line 528 to see whether the data cell is empty or not. This check fails if the data contains newline characters, and the "null value" is always substituted. A user-level workaround is to do s/\n//g, unfortunately this can't be done in the map_cell() routines due to order of processing. (Perhaps the map_cell processing could be moved higher?) Please change XHTML_Table.pm 1.36 line 528 from my $cdata = ($row->[$_] =~ /^.+$/) to my $cdata = length $row->[$_] This is probably more clear than changing it to read /^.+$/m or any of the other variations possible.
Will be available in V1.38