aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-06-07 11:27:33 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-06-07 11:27:33 -0700
commit3e06172a00998dfee8cd54c90672a1059ad64532 (patch)
tree7e8f39610aad7a4f4d6db496d94d6f9776d9a7e5 /src
parent4136ec0f4ae30d2b2a41260d3af3c894c79fe705 (diff)
parent240cdfd1b3910b2ddacb8d73865a6bbfd385c3dc (diff)
downloadpandoc-3e06172a00998dfee8cd54c90672a1059ad64532.tar.gz
Merge pull request #2968 from IvoBCD/docbook5-xlink-ns
Docbook writer: Declare xlink namespace in Docbook5 output
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/Docbook.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Docbook.hs b/src/Text/Pandoc/Writers/Docbook.hs
index 9acfe289a..9b1c70166 100644
--- a/src/Text/Pandoc/Writers/Docbook.hs
+++ b/src/Text/Pandoc/Writers/Docbook.hs
@@ -117,7 +117,7 @@ elementToDocbook opts lvl (Sec _ _num (id',_,_) title elements) =
else "sect" ++ show n
| otherwise -> "simplesect"
idAttr = [("id", writerIdentifierPrefix opts ++ id') | not (null id')]
- nsAttr = if writerDocbook5 opts && lvl == 0 then [("xmlns", "http://docbook.org/ns/docbook")]
+ nsAttr = if writerDocbook5 opts && lvl == 0 then [("xmlns", "http://docbook.org/ns/docbook"),("xmlns:xlink", "http://www.w3.org/1999/xlink")]
else []
attribs = nsAttr ++ idAttr
in inTags True tag attribs $