mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-21 06:55:46 +00:00
EPUB: Get correct environment variable for LANG.
This should fix `<dc:language>` problems.
This commit is contained in:
@@ -120,7 +120,7 @@ writeEPUB mbStylesheet opts doc@(Pandoc meta _) = do
|
||||
let chapterEntries = zipWith chapterToEntry [1..] chapters
|
||||
|
||||
-- contents.opf
|
||||
lang <- catch (liftM (takeWhile (/='.')) $ getEnv "lang")
|
||||
lang <- catch (liftM (takeWhile (/='.')) $ getEnv "LANG")
|
||||
(\_ -> return "en-US")
|
||||
uuid <- getRandomUUID
|
||||
let chapterNode ent = unode "item" !
|
||||
|
||||
Reference in New Issue
Block a user