diff options
author | Andrew Dolgov <[email protected]> | 2018-02-02 08:46:25 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-02-02 08:46:25 +0300 |
commit | ed676793434b2009da63d383af887d5f9158fb35 (patch) | |
tree | 505e5c41801cbbb81f22a856db40aba5ace3ae31 | |
parent | a5cb605e450f57ee7b548027451e00b8bb1a3fb6 (diff) |
disable workarounds for epub inline styles because they break legitimate per-paragraph styles
-rw-r--r-- | js/read.js | 4 | ||||
-rw-r--r-- | read.html | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -149,14 +149,14 @@ function apply_styles() { book.setStyle("lineHeight", lineHeight); book.setStyle("textAlign", "justify"); - $("#reader iframe").contents().find("p") +/* $("#reader iframe").contents().find("p") .css("background", "") .css("color", "") .css("background-color", "") .css("font-family", fontFamily) .css("font-size", fontSize) .css("line-height", lineHeight) - .css("text-align", "justify"); + .css("text-align", "justify"); */ }); @@ -678,7 +678,7 @@ console.log('tn', themeName); }; }); - book.on("renderer:chapterDisplayed", function() { + /* book.on("renderer:chapterDisplayed", function() { // variables defined above after reading from localforage @@ -691,7 +691,7 @@ console.log('tn', themeName); .css("line-height", lineHeight) .css("text-align", "justify"); - }); + }); */ book.on("renderer:keydown", hotkey_handler); |