aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-06-12 09:25:42 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-06-12 09:25:42 -0700
commit1e45bb0041a184a6ae02549c4deb4a9cdf26ecb3 (patch)
tree9d850890ecead8eef478ef5ab5bbd56600794218 /src/Text
parentb6305a63cd2307b7d80de76bef150cba3d328763 (diff)
downloadpandoc-1e45bb0041a184a6ae02549c4deb4a9cdf26ecb3.tar.gz
LaTeX reader: allow spaces around `\graphicspath` arguments.
Closes #4698.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 042295fd9..d6b5f8685 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -2423,7 +2423,8 @@ coloredBlock stylename = try $ do
graphicsPath :: PandocMonad m => LP m Blocks
graphicsPath = do
- ps <- map toksToString <$> (bgroup *> manyTill braced egroup)
+ ps <- map toksToString <$>
+ (bgroup *> spaces *> manyTill (braced <* spaces) egroup)
getResourcePath >>= setResourcePath . (++ ps)
return mempty