Skip to content

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

@Alexnortung

Description

@Alexnortung

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions