aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/LaTeX.hs
diff options
context:
space:
mode:
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