Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commented lines are parsed #18

@cl3wis

Description

@cl3wis

In the .tex file there is some line as follows: %\begin{tabular}{|l|r|r|r|r|r|r|}. This exception is raised:

...\TexSoup\reader.py in read_env(src, expr)
    241     if not src.startswith('\\end{%s}' % expr.name):
    242         raise EOFError('Expecting \\end{%s}. Instead got %s' % (
--> 243             expr.name, src.peek((0, 5))))
    244     else:
    245         src.forward(5)

EOFError: Expecting \end{tabular}. Instead got 

With the offending commented line removed from the .tex, the file is parsed normally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions