From 7bbbafa0e29aaaab42e4cabbe354c75bd9f00ae4 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Mon, 16 Nov 2015 08:27:47 +0100 Subject: [PATCH] newline fix --- patacrep/latex/lexer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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