Improved html2text.

This commit is contained in:
Martin Edenhofer 2016-06-22 15:11:22 +02:00
parent 490ec2f271
commit a881e21f10

View file

@ -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