Skip to content

error coming from not using line breaks within \begin{comment} \end{comment} environment #2743

@juliusross1

Description

@juliusross1

Following error from the below latex:
Error:expected:\end{document} Input ended while environment document was open at String; line 1 col 0

\documentclass{amsart}
\usepackage{comment}
\usepackage{verbatim}
\begin{document}
Test
\begin{comment}\begin{remark}\end{comment}
\end{document}

There is no error with

\documentclass{amsart}
\usepackage{comment}
\begin{document}
\begin{comment}\begin{remark}
\end{comment}
Test
\end{document}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions