summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-01-20 15:58:08 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-01-20 16:34:52 +0100
commit835036fc550af059f2bc067fc39465a9bfda7c2f (patch)
treeea3c68e6457b1732f33c4f62e51e1d866aeeefc8 /include
parent54b039c006c8f7eb0f6cd81800f2167c3ba228eb (diff)
downloadmupdf-835036fc550af059f2bc067fc39465a9bfda7c2f.tar.xz
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".
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/html.h1
1 files changed, 1 insertions, 0 deletions
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 */