diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-06-12 09:25:42 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-06-12 09:25:42 -0700 |
commit | 1e45bb0041a184a6ae02549c4deb4a9cdf26ecb3 (patch) | |
tree | 9d850890ecead8eef478ef5ab5bbd56600794218 | |
parent | b6305a63cd2307b7d80de76bef150cba3d328763 (diff) | |
download | pandoc-1e45bb0041a184a6ae02549c4deb4a9cdf26ecb3.tar.gz |
LaTeX reader: allow spaces around `\graphicspath` arguments.
Closes #4698.
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 3 |
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 |