Fix a bug where html2text dropped the last word. Added tests.

This commit is contained in:
Colin Kuskie 2009-04-25 05:41:24 +00:00
parent c452f92224
commit 3535e8ddb4
3 changed files with 29 additions and 3 deletions

View file

@ -227,7 +227,7 @@ my $text = "";
my $inside = {};
sub html2text {
my $html = shift;
my $html = shift . " ";
$text = "";
$inside = {};
my $tagHandler = sub {