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:
parent
416dad86dc
commit
ac7714ca39
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
<> ">"
|
||||
] <> ">"
|
||||
|
|
Loading…
Add table
Reference in a new issue