aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Lewertowski <[email protected]>2023-04-27 15:59:17 +0200
committerJohn MacFarlane <[email protected]>2023-04-27 16:27:08 -0700
commitb21dee81983549801f56b7f4e3f43d6c960a3d90 (patch)
treec573b14c34fd8208dc9ec37181663dde95e23486
parentf5c4f2cebc9b88816ef7f75319e25603fd182a1a (diff)
add lang attribute to html tag in epub tpl
-rw-r--r--data/templates/default.epub22
-rw-r--r--data/templates/default.epub32
2 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/default.epub2 b/data/templates/default.epub2
index b10705119..9e820b673 100644
--- a/data/templates/default.epub2
+++ b/data/templates/default.epub2
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ xml:lang="$lang$"$endif$>
+<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
diff --git a/data/templates/default.epub3 b/data/templates/default.epub3
index 0fac2e11a..39c37efdd 100644
--- a/data/templates/default.epub3
+++ b/data/templates/default.epub3
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"$if(lang)$ xml:lang="$lang$"$endif$>
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$>
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />