]> git.lyx.org Git - features.git/commitdiff
Add 'dir="auto"' to the body tag for XHTML export. This should take
authorRichard Heck <rgheck@lyx.org>
Sun, 31 Jul 2016 06:52:30 +0000 (02:52 -0400)
committerRichard Heck <rgheck@lyx.org>
Sun, 31 Jul 2016 06:52:30 +0000 (02:52 -0400)
care of much of what we need to do for RTL languages. It does not
take care of inline language changes, probably.

src/Buffer.cpp

index 888fb93d9b16a7dbc19f0186b02ed28e3c730f01..77ef949a5325715b8c5ee93cd5e683d04f951c68 100644 (file)
@@ -2152,7 +2152,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.