summaryrefslogtreecommitdiff
path: root/simplyread.js
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2011-06-13 23:37:09 +0100
committerNick White <git@njw.me.uk>2011-06-13 23:37:09 +0100
commit0306460893735e8e65de70f3034e1202de77a6e1 (patch)
treeebacc7d60af2ad05f7dc6de8cd70ba4c486a0bd1 /simplyread.js
parent60d63b164c929aa3f308477d04a3be221d4470f9 (diff)
Add CSS hyphenation (not well supported). Note that previous commit also included ligatures, which is neat
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 d841e0a..4aa85c8 100755
--- a/simplyread.js
+++ b/simplyread.js
@@ -65,7 +65,7 @@ function simplyread()
doc.body.innerHTML =
"<div style=\"width:38em; margin:auto;" +
" text-align:justify; font-family:sans;" +
- " text-rendering:optimizeLegibility;\">" +
+ " text-rendering:optimizeLegibility; hyphens:auto;\">" +
"<h1 style=\"text-align: center\">"+doc.title+"</h1>" +
fresh.innerHTML + "</div>";