Skip Menu |

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

Report information
The Basics
Id: 402
Status: open
Priority: 0/
Queue: HTML-Clean

Owner: Nobody in particular
Requestors: tjmather [...]

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

MIME-Version: 1.0
X-Mailer: MIME-tools 5.405 (Entity 5.404)
Subject: Removes newline after linktag
Content-Type: multipart/mixed; boundary="----------=_1016987106-1754-0"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 756
Download (untitled) / with headers
text/plain 756b
I'm using HTML::Clean and I find it useful for reducing the size of HTML downloads. However, I do have a small problem with it. If I have the following text: <a href="">Yahoo</a> <font size=-1>(link to yahoo)</font> It gets transformed to something like <a href="">Yahoo</a><font size=-1>(link to yahoo)</font> It gets displayed as Yahoo(link to yahoo) But instead I want it to be transformed to <a href="">Yahoo</a> <font size=-1>(link to yahoo)</font> With a *space* between the "Yahoo" link and the "(link to yahoo)" text. That is, Yahoo (link to yahoo) I was able to fix it easily so that it puts a space between tags. Please see the attached patch.
Content-Type: text/plain; name="HTML-Clean.patch"
Content-Disposition: inline; filename="HTML-Clean.patch"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 475
Download HTML-Clean.patch
text/x-diff 475b
--- Wed Jan 17 06:01:37 2001 +++ Wed Jan 17 06:01:45 2001 @@ -431,7 +431,7 @@ $$h =~ s,\n\s+<,\n<,sg; # space before tag $$h =~ s,\n\s+,\n ,sg; # other spaces - $$h =~ s,>\n\s*<,><,sg; # LF/spaces between tags.. + $$h =~ s,>\n\s*<,> <,sg; # LF/spaces between tags.. # Remove excess spaces within tags.. note, we could parse out the elements # and rewrite for excess spaces between elements. perhaps next version.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-10815-1332016522-1092.402-0-0 [...]>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 206
Download (untitled) / with headers
text/plain 206b
I came on here to report a similar bug only to find it was reported 10 *YEARS* ago and is still outstanding. Can this either be fixed or can the module be taken over by someone who will support it, please?

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to