aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/XML.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-01-08 17:32:50 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2016-01-08 17:33:32 -0800
commit5884ff6994e739bd46be4914adcb7fc9cc093056 (patch)
tree9518c8a56858981986456de16c3419e4dc17c48d /src/Text/Pandoc/XML.hs
parent12a5bd3c8d34eddbabee0dc54fd7ce6d9539c9d4 (diff)
downloadpandoc-5884ff6994e739bd46be4914adcb7fc9cc093056.tar.gz
Work around tagsoup bug - not allowing uppercase x in hex entities.
Issue submitted at tagsoup.
Diffstat (limited to 'src/Text/Pandoc/XML.hs')
-rw-r--r--src/Text/Pandoc/XML.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/XML.hs b/src/Text/Pandoc/XML.hs
index 1e01b62f2..82ceff126 100644
--- a/src/Text/Pandoc/XML.hs
+++ b/src/Text/Pandoc/XML.hs
@@ -107,6 +107,7 @@ fromEntities ('&':xs) =
(zs,';':ys) -> (zs,ys)
(zs, ys) -> (zs,ys)
ent' = case ent of
+ '#':'X':xs -> '#':'x':xs -- workaround tagsoup bug
'#':_ -> ent
_ -> ent ++ ";"