commit: 0563026d23083cf20fc446d5ac6f77dcdda1ff3d
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 16 06:43:11 2019 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Dec 16 06:43:11 2019 +0000
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=0563026d
devbook.xsl: Add html lang attribute.
The W3 Validator wants to have this. Also add a newline after the
doctype declaration.
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
bin/gen-eclass-html.sh | 3 ++-
devbook.xsl | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/bin/gen-eclass-html.sh b/bin/gen-eclass-html.sh
index fe17064..e1f9e1f 100755
--- a/bin/gen-eclass-html.sh
+++ b/bin/gen-eclass-html.sh
@@ -6,7 +6,8 @@
OUTPUTDIR="eclass-reference"
IFS='' read -r -d '' HEADER << 'EOF'
-<!DOCTYPE html><html lang="en">
+<!DOCTYPE html>
+<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>@TITLE@ - Gentoo Development Guide</title>
diff --git a/devbook.xsl b/devbook.xsl
index aa93b75..96a0508 100644
--- a/devbook.xsl
+++ b/devbook.xsl
@@ -444,7 +444,8 @@
<xsl:template match="/">
<xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text>
- <html>
+ <xsl:value-of select='$newline'/>
+ <html lang="en">
<head>
<title><xsl:value-of select="/guide/chapter[1]/title"/> – Gentoo
Development Guide</title>
<xsl:variable name="relative_path_depth"
select="string-length(/guide/@self)-string-length(translate(/guide/@self, '/' ,
''))"/>