summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-03-06 22:45:53 +0100
committerSamy Pessé <samypesse@gmail.com>2015-03-06 22:45:53 +0100
commita5d7a87e31240969005703af1d14fb3e0273461e (patch)
tree32eded7a49862f5ea6f6a5feda45cb6ceaa0d9cb
parentc7f7c5b5ab7023859ec8fe86b4024143417f540a (diff)
downloadgitbook-a5d7a87e31240969005703af1d14fb3e0273461e.zip
gitbook-a5d7a87e31240969005703af1d14fb3e0273461e.tar.gz
gitbook-a5d7a87e31240969005703af1d14fb3e0273461e.tar.bz2
Enable rtl in ebooks
-rw-r--r--theme/templates/ebook/layout.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/theme/templates/ebook/layout.html b/theme/templates/ebook/layout.html
index 1a9c01c..3ca3ef4 100644
--- a/theme/templates/ebook/layout.html
+++ b/theme/templates/ebook/layout.html
@@ -1,5 +1,5 @@
<!DOCTYPE HTML>
-<html lang="{{ language }}" {% block htmlTag %}{% endblock %}>
+<html lang="{{ language }}" {% block htmlTag %}{% endblock %} {% if options.direction == "rtl" %}dir="rtl"{% endif %}>
{{ htmlSnippet("html:start")|default("")|safe }}
<head>
{{ htmlSnippet("head:start")|default("")|safe }}