summaryrefslogtreecommitdiff
path: root/simplyread.js
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-11-16 21:17:21 +0000
committerNick White <git@njw.me.uk>2010-11-16 21:17:21 +0000
commit2ced9c95871b358076b4cf8918706238a67ccb90 (patch)
treee3369bb195eec21c79a29f21ce697a12ffc14267 /simplyread.js
parent105ab7e1aa4c6844094e74e954ee214a3fe3ef69 (diff)
Solidify margin workaround, update tests
Diffstat (limited to 'simplyread.js')
-rwxr-xr-xsimplyread.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/simplyread.js b/simplyread.js
index 45c9570..c7b56b5 100755
--- a/simplyread.js
+++ b/simplyread.js
@@ -62,7 +62,7 @@ function simplyread()
fresh.innerHTML = fresh.innerHTML.replace(/<\/?font[^>]*>/g, "");
fresh.innerHTML = fresh.innerHTML.replace(/style="[^"]*"/g, "");
fresh.innerHTML = fresh.innerHTML.replace(/<\/?a[^>]*>/g, "");
- fresh.innerHTML = fresh.innerHTML.replace(/<p/g, "<p style=\"margin: 1em 0em;\"");
+ fresh.innerHTML = fresh.innerHTML.replace(/<p>/g, "<p style=\"margin:1em 0em\">");
for (var i = 0; i < doc.styleSheets.length; i++)
doc.styleSheets[i].disabled = true;