summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2024-01-25 10:38:57 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2024-01-25 10:38:57 -0800
commit09b6db8c507b102dd20d7294cb7204d8f46eb77a (patch)
tree706f751fa755b9d5a95ce32932ae4d0d33314f39 /src
parentd9a70d2eaf30a3fe4836f8b69a0c32181d84bd00 (diff)
EPUB writer: Add xml:lang to package element.
See #9372.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/EPUB.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs
index 0bdc4c2bd..517e85a42 100644
--- a/src/Text/Pandoc/Writers/EPUB.hs
+++ b/src/Text/Pandoc/Writers/EPUB.hs
@@ -614,6 +614,7 @@ pandocToEPUB version opts doc = do
EPUB2 -> "2.0"
EPUB3 -> "3.0")
,("xmlns","http://www.idpf.org/2007/opf")
+ ,("xml:lang", epubLanguage metadata)
,("unique-identifier","epub-id-1")
] ++
[("prefix","ibooks: http://vocabulary.itunes.apple.com/rdf/ibooks/vocabulary-extensions-1.0/") | version == EPUB3]) $