Improved html2text.
This commit is contained in:
parent
490ec2f271
commit
a881e21f10
1 changed files with 3 additions and 0 deletions
|
@ -221,6 +221,9 @@ class String
|
|||
# remove tailing empty spaces
|
||||
string.gsub!(/[[:blank:]]+$/, '')
|
||||
|
||||
# remove double multiple empty lines
|
||||
string.gsub!(/\n\n\n/, "\n\n")
|
||||
|
||||
# add extracted links
|
||||
if link_list != ''
|
||||
string += "\n\n\n" + link_list
|
||||
|
|
Loading…
Reference in a new issue