Skip to content

Fix parsing of newlines after a backslash#140

Merged
alvinwan merged 3 commits into
alvinwan:masterfrom
masonproffitt:fix_139_newline-after-backslash
Jun 5, 2023
Merged

Fix parsing of newlines after a backslash#140
alvinwan merged 3 commits into
alvinwan:masterfrom
masonproffitt:fix_139_newline-after-backslash

Conversation

@masonproffitt

Copy link
Copy Markdown
Contributor

Resolves #139.

@MaicoTimmerman

Copy link
Copy Markdown

@alvinwan I'd love to see the merged and released as it also fixes an warning:

File /usr/local/lib/python3.10/site-packages/TexSoup/tex.py:1: in <module>
    from TexSoup.reader import read_expr, read_tex
File "/usr/local/lib/python3.10/site-packages/TexSoup/reader.py", line 97
    assert mode != MODE_MATH, 'Command \item invalid in math mode.'
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: invalid escape sequence '\i'

@alvinwan alvinwan merged commit 99b9595 into alvinwan:master Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Newlines after backslashes are not parsed correctly

3 participants