aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Writers/EPUB.hs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs
index ef7ce659b..37c78bba8 100644
--- a/src/Text/Pandoc/Writers/EPUB.hs
+++ b/src/Text/Pandoc/Writers/EPUB.hs
@@ -434,9 +434,11 @@ pandocToEPUB version opts doc = do
stylesheets [(1 :: Int)..]
let vars = Context $
- M.delete "css" . M.insert "epub3"
- (toVal' $ if epub3 then "true" else "false") $
- unContext $ writerVariables opts
+ M.delete "css" .
+ M.insert "epub3"
+ (toVal' $ if epub3 then "true" else "false") .
+ M.insert "lang" (toVal' $ epubLanguage metadata)
+ $ unContext $ writerVariables opts
let cssvars useprefix = Context $ M.fromList $ map
(\e -> ("css", toVal' $