commit 1c9bb3f6de98f88e8d2db130350ea61568de454f
Author: Richard Heck <[email protected]>
Date: Sun Jul 31 02:52:30 2016 -0400
Add 'dir="auto"' to the body tag for XHTML export. This should take
care of much of what we need to do for RTL languages. It does not
take care of inline language changes, probably.
(cherry picked from commit 07dcb1c525435c6f22de4314ba31150c53502429)
---
src/Buffer.cpp | 2 +-
status.22x | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index 28c1269..5df91ec 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -2151,7 +2151,7 @@ void Buffer::writeLyXHTMLSource(odocstream & os,
if (output_body) {
bool const output_body_tag = (output != IncludedFile);
if (output_body_tag)
- os << "<body>\n";
+ os << "<body dir=\"auto\">\n";
XHTMLStream xs(os);
if (output != IncludedFile)
// if we're an included file, the counters are in the
master.
diff --git a/status.22x b/status.22x
index f01ead8..1233831 100644
--- a/status.22x
+++ b/status.22x
@@ -95,6 +95,9 @@ What's new
- Fix display of listings (bug 8362).
+- Add "dir='auto'" to body tag, which should help a lot with export of
+ RTL languages (bug 8279, partly).
+
* TEX2LYX