Small improvement to #3855 - move lang attribute up.

So we don't have a dangling line with the closing `>` when
`lang` is not set.
This commit is contained in:
John MacFarlane 2017-08-21 21:16:55 -07:00
parent 9375e50b96
commit 6cba21b4d3
2 changed files with 5 additions and 6 deletions

View file

@ -1,14 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE article>
<article
$if(lang)$
xml:lang="$lang$"
$endif$
xmlns="http://docbook.org/ns/docbook" version="5.0"
$if(mathml)$
xmlns:mml="http://www.w3.org/1998/Math/MathML"
$endif$
xmlns:xlink="http://www.w3.org/1999/xlink"
$if(lang)$
xml:lang="$lang$"
$endif$ >
xmlns:xlink="http://www.w3.org/1999/xlink" >
<info>
<title>$title$</title>
$if(subtitle)$

View file

@ -2,8 +2,7 @@
<!DOCTYPE article>
<article
xmlns="http://docbook.org/ns/docbook" version="5.0"
xmlns:xlink="http://www.w3.org/1999/xlink"
>
xmlns:xlink="http://www.w3.org/1999/xlink" >
<info>
<title>Pandoc Test Suite</title>
<authorgroup>