diff options
author | umbrae <umbrae@d4e419ec-0920-11de-bbfd-a7c1bc4c261e> | 2009-03-07 15:26:22 +0000 |
---|---|---|
committer | umbrae <umbrae@d4e419ec-0920-11de-bbfd-a7c1bc4c261e> | 2009-03-07 15:26:22 +0000 |
commit | 384cb8c5fae2a33b8d621e4846a37e2a23670497 (patch) | |
tree | ac656bbb5c2c555e8f36fb73f3470a3630148b56 /js | |
parent | af01903012c701583f73f5512855c0a27774f8a4 (diff) | |
download | readability-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
Diffstat (limited to 'js')
-rwxr-xr-x | js/readability-0.1.js | 2 |
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| ?)*){1,}/g,'<br />');
return e;
}
|