Fix a bug where html2text dropped the last word. Added tests.
This commit is contained in:
parent
c452f92224
commit
3535e8ddb4
3 changed files with 29 additions and 3 deletions
|
|
@ -227,7 +227,7 @@ my $text = "";
|
|||
my $inside = {};
|
||||
|
||||
sub html2text {
|
||||
my $html = shift;
|
||||
my $html = shift . " ";
|
||||
$text = "";
|
||||
$inside = {};
|
||||
my $tagHandler = sub {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue