MDL-27736 improve a bit html2text to avoid some ugly & unnecessary trailing spaces

This commit is contained in:
Eloy Lafuente (stronk7)
2011-06-06 16:42:55 +01:00
committed by Tim Hunt
parent 36e91f1de1
commit 3709ecb929
+2
View File
@@ -169,6 +169,7 @@ class html2text
'/&(bull|#149|#8226);/i', // Bullet
'/&(pound|#163);/i', // Pound sign
'/&(euro|#8364);/i', // Euro sign
'/[ ]+([\n\t])/', // Trailing spaces before newline or tab
'/[ ]{2,}/' // Runs of spaces, post-handling
);
@@ -212,6 +213,7 @@ class html2text
'*',
'£',
'EUR', // Euro sign. € ?
'\\1', // Trailing spaces before newline or tab
' ' // Runs of spaces, post-handling
);