diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-01-14 10:28:55 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-01-14 12:24:21 -0800 |
commit | 4debcf7bdc38fb44d9fb53d37251e7aac2c5c82e (patch) | |
tree | 3f2906c84d8e93b3c70220c3c99eb57a8d7ac19b /src/Text/Pandoc | |
parent | e5abee82f261fed308eb45cef05c79eff9f7143c (diff) | |
download | pandoc-4debcf7bdc38fb44d9fb53d37251e7aac2c5c82e.tar.gz |
LaTeX reader: Advance source position at end of stream.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 0a78fbe53..6298e0b2f 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -405,7 +405,7 @@ satisfyTok f = | otherwise = Nothing updatePos :: SourcePos -> Tok -> [Tok] -> SourcePos updatePos _spos _ (Tok pos _ _ : _) = pos - updatePos spos _ [] = spos + updatePos spos _ [] = incSourceColumn spos 1 doMacros :: PandocMonad m => Int -> LP m () doMacros n = do |