phfaist / pylatexenc

Simple LaTeX parser providing latex-to-unicode and unicode-to-latex conversion
https://pylatexenc.readthedocs.io
MIT License
283 stars 35 forks source link

Exception when parsing macro definitions with multiple arguments #96

Open dspinellis opened 1 year ago

dspinellis commented 1 year ago

The definition \def\href#1#2{#2} (extracted from the BibTeX output file), will cause pylatexenc 2.10 and 3.0a14 to throw an IndexError exception in _defaultspecs.py", line 194, in <lambda> '{} <{}>'.format(l2tobj.nodelist_to_text([n.nodeargd.argnlist[1]]).