git.iko.soy/typeable/pandoc
on master help sign in
Docbook writer: Declare xlink namespace in Docbook5 output
commit240cdfd1b3910b2ddacb8d73865a6bbfd385c3dc authorIvo Clarysse <ivo@bcdevices.com> dateTue 7 Jun 2016, 06:03 (10 years ago) parenta184aec
1 file changed+1−1
src/Text/Pandoc/Writers/Docbook.hs+1−1
src/Text/Pandoc/Writers/Docbook.hs+1−1
@@ -117,7 +117,7 @@ elementToDocbook opts lvl (Sec _ _num (id',_,_) title elements) =
117117 else "sect" ++ show n
118118 | otherwise -> "simplesect"
119119 idAttr = [("id", writerIdentifierPrefix opts ++ id') | not (null id')]
120− nsAttr = if writerDocbook5 opts && lvl == 0 then [("xmlns", "http://docbook.org/ns/docbook")]
120+ nsAttr = if writerDocbook5 opts && lvl == 0 then [("xmlns", "http://docbook.org/ns/docbook"),("xmlns:xlink", "http://www.w3.org/1999/xlink")]
121121 else []
122122 attribs = nsAttr ++ idAttr
123123 in inTags True tag attribs $