From 835036fc550af059f2bc067fc39465a9bfda7c2f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 20 Jan 2016 15:58:08 +0100 Subject: epub: Adjust text-align based on paragraph directionality. In RTL context, text-align: left should be right, and vice versa. Since we currently ignore the dir="xxx" HTML attributes and CSS properties, always pick up the directionality from the text as if dir="auto". --- include/mupdf/html.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/mupdf/html.h b/include/mupdf/html.h index 546a4fbb..afa203ec 100644 --- a/include/mupdf/html.h +++ b/include/mupdf/html.h @@ -174,6 +174,7 @@ struct fz_html_s float em; fz_html *up, *down, *last, *next; fz_html_flow *flow_head, **flow_tail; + fz_bidi_direction flow_dir; fz_css_style style; int list_item; int is_first_flow; /* for text-indent */ -- cgit v1.2.3