sagetex icon indicating copy to clipboard operation
sagetex copied to clipboard

Sage cannot compile, when there is an empty sagesilent or sageblock

Open Alexnortung opened this issue 4 years ago • 1 comments

The following latex code will fail with the following fail.

\begin{sagesilent}

\end{sagesilent}
File "main.sagetex.sage.py", line 32
    except:
    ^
IndentationError: expected an indented block

To reproduce: Create a .tex document and include the sagetex package. Then add the codeblock above and run

pdflatex main.tex
sage main.sagetex.sage

Alexnortung avatar May 16 '20 10:05 Alexnortung

thanks for the report, and please feel free to provide a PR to fix this issue.

dimpase avatar Jun 07 '20 13:06 dimpase