Docx writer: initialize envLang from lang metadata.

This ensures that setting `lang` will affect the whole document.
Previously, setting `lang` to `he` was not sufficient to make
the document RTL.

See #11301.
This commit is contained in:
John MacFarlane
2026-08-22 10:26:07 -07:00
parent 965e9e7d0d
commit 65e6d995f9
2 changed files with 1 additions and 0 deletions
+1
View File
@@ -98,6 +98,7 @@ writeDocx opts doc = do
let env = defaultWriterEnv {
envRTL = isRTLmeta
, envLang = getLang opts meta
, envChangesAuthor = fromMaybe "unknown" username
, envChangesDate = T.pack $ formatTime defaultTimeLocale "%FT%XZ" utctime
, envPrintWidth = maybe 420 (`quot` 20) pgContentWidth
Binary file not shown.