summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorumbrae <umbrae@d4e419ec-0920-11de-bbfd-a7c1bc4c261e>2009-03-07 15:26:22 +0000
committerumbrae <umbrae@d4e419ec-0920-11de-bbfd-a7c1bc4c261e>2009-03-07 15:26:22 +0000
commit384cb8c5fae2a33b8d621e4846a37e2a23670497 (patch)
treeac656bbb5c2c555e8f36fb73f3470a3630148b56
parentaf01903012c701583f73f5512855c0a27774f8a4 (diff)
downloadreadability-simple-384cb8c5fae2a33b8d621e4846a37e2a23670497.tar.bz2
readability-simple-384cb8c5fae2a33b8d621e4846a37e2a23670497.zip
Bug fix. Kill breaks globally.
git-svn-id: http://arc90labs-readability.googlecode.com/svn/trunk@14 d4e419ec-0920-11de-bbfd-a7c1bc4c261e
-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;
}