aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/LaTeX.hs
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-02-12 17:14:11 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-02-12 17:14:11 +0000
commitf3437dd27cbc3e82cdcef7433d0fbff5acd22eb9 (patch)
tree5226139f8f073770a0d1fc40efaed362113cf9bf /src/Text/Pandoc/Readers/LaTeX.hs
parent73cbae72026ad43d80d0005296adb9f5c8fe858a (diff)
downloadpandoc-f3437dd27cbc3e82cdcef7433d0fbff5acd22eb9.tar.gz
+ Added some needed "try"s before multicharacter parsers,
especially in "option" contexts. + Removed the "try" from the "end" parser in "enclosed" (Text.Pandoc.Shared). Now "enclosed" behaves like "option", "manyTill", etc. git-svn-id: https://pandoc.googlecode.com/svn/trunk@527 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'src/Text/Pandoc/Readers/LaTeX.hs')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index c152cc336..150b7cb6f 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -131,7 +131,7 @@ parseLaTeX = do
option () processLaTeXPreamble -- preamble might not be present (fragment)
blocks <- parseBlocks
spaces
- option "" (string "\\end{document}") -- might not be present (in fragment)
+ option "" (try (string "\\end{document}")) -- might not be present (in fragment)
spaces
eof
state <- getState
@@ -540,7 +540,7 @@ doubleQuoteEnd = try (string "''")
ellipses = try (do
string "\\ldots"
- option "" (string "{}")
+ option "" (try (string "{}"))
return Ellipses)
enDash = try (do