summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rwxr-xr-xjs/readability-0.1.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/readability-0.1.js b/js/readability-0.1.js
index aade9b2..3cbc6bf 100755
--- a/js/readability-0.1.js
+++ b/js/readability-0.1.js
@@ -188,7 +188,7 @@ function killDivs ( e ) {
}
function killBreaks ( e ) {
- e.innerHTML = e.innerHTML.replace(/(<br\s*\/?>\s*){1,}/,'<br />');
+ e.innerHTML = e.innerHTML.replace(/(<br\s*\/?>(\s|&nbsp;?)*){1,}/g,'<br />');
return e;
}