mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
527a6217ee
commit
ae8cf31bac
Binary file not shown.
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user