Text.Pandoc.Writer.Shared: fixed bug in tagWithAttrs.

A space was omitted before key-value attributes, leading
to invalid HTML.
This commit is contained in:
John MacFarlane 2013-10-26 18:22:59 -07:00
parent 416dad86dc
commit ac7714ca39

View file

@ -134,7 +134,6 @@ tagWithAttrs tag (ident,classes,kvs) = hsep
,if null classes
then empty
else "class=" <> doubleQuotes (text (unwords classes))
]
<> hsep (map (\(k,v) -> text k <> "=" <>
,hsep (map (\(k,v) -> text k <> "=" <>
doubleQuotes (text (escapeStringForXML v))) kvs)
<> ">"
] <> ">"