PDF Output: Fix incorrect conversion of source document that specify dir="rtl" on the root element. Fixes #1429292 [dir="rtl" in html crashes PDF build](https://bugs.launchpad.net/calibre/+bug/1429292)

Also fixes rendering of such documents int he viewer in paged mode.
This commit is contained in:
Kovid Goyal 2015-03-07 16:49:40 +05:30
parent 527a6217ee
commit ae8cf31bac
2 changed files with 1 additions and 0 deletions

Binary file not shown.

View File

@ -112,6 +112,7 @@ class PagedDisplay
if node.nodeType == node.ELEMENT_NODE and window.getComputedStyle(node).direction == "rtl"
node.style.setProperty("direction", "rtl")
document.body.style.direction = "ltr"
document.documentElement.style.direction = 'ltr'
layout: (is_single_page=false) ->
# start_time = new Date().getTime()