Browse Source

newline fix

pull/177/head
Oliverpool 9 years ago
parent
commit
7bbbafa0e2
  1. 2
      patacrep/latex/lexer.py

2
patacrep/latex/lexer.py

@ -60,7 +60,7 @@ class SimpleLexer:
# Define a rule so we can track line numbers # Define a rule so we can track line numbers
@staticmethod @staticmethod
def t_endofline(token): def t_endofline(token):
r'\n+' r'(\r?\n)+'
token.lexer.lineno += len(token.value) token.lexer.lineno += len(token.value)
@staticmethod @staticmethod

Loading…
Cancel
Save