LaTeX reader: Advance source position at end of stream.

This commit is contained in:
John MacFarlane 2018-01-14 10:28:55 -08:00
parent e5abee82f2
commit 4debcf7bdc

View file

@ -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