Skip Menu |

This queue is for tickets about the HTML-Strip CPAN distribution.

Report information
The Basics
Id: 19036
Status: resolved
Priority: 0/
Queue: HTML-Strip

People
Owner: Nobody in particular
Requestors: dodell [...] donnerwood.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.06
Fixed in: 1.07



Subject: HTML::Strip not replacing tags with single space
It appears that HTML::Strip isn't replacing a tag with a space when the value in between the tags is a single character. For example when I parse this line: <tr><td>01 May 2006</td><td>506</td><td>10860</td><td>39602</td><td>641.46 MB</td></tr> I get the following results: 01 May 2006 506 10860 39602 641.46 MB However when I parse this line which contains fields with single characters: <tr><td>01 May 2006</td><td>0</td><td>0</td></tr> I get these results where there is no space between the 2 zeros: 01 May 2006 00 If I add a second character to the first zero it parses as expected: <tr><td>01 May 2006</td><td>10</td><td>0</td></tr> Results: 01 May 2006 10 0 However adding a second character to the second zero does make a difference: <tr><td>01 May 2006</td><td>0</td><td>10</td></tr> Results: 01 May 2006 010 Is this the expected behavior or should I file a bug for this? BTW thanks for writing this module I've been using it for several years now. David O'Dell
Firstly, apologies for taking so long to reply. The email address that my CPAN email was forwarding to died unexpectedly, so I lost a bunch of bug report emails. On Tue May 02 16:04:18 2006, guest wrote: Show quoted text
> Is this the expected behavior or should I file a bug for this?
No, it isn't. I don't offhand know what might be causing this problem, but I'll investigate. Show quoted text
> BTW thanks for writing this module I've been using it for several
years now. You're welcome :)
On Wed Sep 24 08:16:09 2014, KILINRAX wrote: Show quoted text