mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
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:
@@ -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.
Reference in New Issue
Block a user