\begin{code}
module Test.Space.LaTeX
where
module _ where
\end{code}
The above code block starts on the first line, and is followed by a blank line.
The following code block is not preceded by a blank line.
\begin{code}
\end{code}
It is also not followed by a blank line.
The following code block is preceded by a blank line.
\begin{code}
\end{code}
It is also followed by a blank line.
Blank lines inside code blocks are preserved:
\begin{code}
\end{code}
The following code block is completely empty:
\begin{code}
\end{code}
The following empty-looking code block has multiple newlines and spaces:
\begin{code}
\end{code}
They are preserved.
Agda code can be indented:
\begin{code}
module _
where
\end{code}
The code block itself can be indented:
\begin{code}
\end{code}