aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-11-21 05:23:09 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-11-21 05:23:09 +0000
commit14a25b287cb937cd5dbdd532971d3733326b18c4 (patch)
treeeb035839d41777542610bbb8b082855deaeee7eb /src/Text
parent39f6af5de4f4059239fbeda4095d8f92b98912d3 (diff)
downloadpandoc-14a25b287cb937cd5dbdd532971d3733326b18c4.tar.gz
Fixed htmlComment parser.
(Added a needed try.) git-svn-id: https://pandoc.googlecode.com/svn/trunk@1621 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/HTML.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs
index e1f1e1af5..aef9e1962 100644
--- a/src/Text/Pandoc/Readers/HTML.hs
+++ b/src/Text/Pandoc/Readers/HTML.hs
@@ -348,7 +348,7 @@ htmlComment :: GenParser Char st [Char]
htmlComment = try $ do
string "<!--"
comment <- many $ noneOf "-"
- <|> try (char '-' >>~ notFollowedBy (char '-' >> char '>'))
+ <|> try (char '-' >>~ notFollowedBy (try (char '-' >> char '>')))
string "-->"
return $ "<!--" ++ comment ++ "-->"