Skip to content

Commit

Permalink
Adding test for bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed Oct 20, 2023
1 parent 777cdf8 commit c3dbdcf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/test_indent_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,23 @@ def test_environment_multiline_option(self):
ret = texplain.indent(text)
self.assertEqual(ret.strip(), formatted.strip())

def test_environment_multiline_option_a(self):
text = r"""
\begin{tcolorbox}[colback=green!5!white] Using a mesoscopic model.
See details.
\end{tcolorbox}
"""

formatted = r"""
\begin{tcolorbox}[colback=green!5!white]
Using a mesoscopic model.
See details.
\end{tcolorbox}
"""

ret = texplain.indent(text)
self.assertEqual(ret.strip(), formatted.strip())

def test_environment_comment(self):
text = r"""
Some text \begin{equation} % some comment
Expand Down

0 comments on commit c3dbdcf

Please sign in to comment.