diff --git a/patacrep/latex/syntax.py b/patacrep/latex/syntax.py index 7c76fbe2..b6daefd0 100644 --- a/patacrep/latex/syntax.py +++ b/patacrep/latex/syntax.py @@ -1,8 +1,8 @@ """Very simple LaTeX parser""" import logging -import ply.yacc as yacc from functools import lru_cache +import ply.yacc as yacc from patacrep.latex import ast from patacrep.latex.detex import detex @@ -223,9 +223,9 @@ def tex2plain(string): """Parse string and return its plain text version.""" return detex( latex_yacc().parse( - string, - lexer=SimpleLexer().lexer, - ) + string, + lexer=SimpleLexer().lexer, + ) ) def parse_song(content, filename=None):