diff --git a/patacrep/latex/lexer.py b/patacrep/latex/lexer.py index f76500f8..81679255 100644 --- a/patacrep/latex/lexer.py +++ b/patacrep/latex/lexer.py @@ -60,7 +60,7 @@ class SimpleLexer: # Define a rule so we can track line numbers @staticmethod def t_endofline(token): - r'\n+' + r'(\r?\n)+' token.lexer.lineno += len(token.value) @staticmethod