When the if/elsif/else blocks contain another block, then the indent line finishes before the end of the if chain.
What is expected
The indent line of a if-elsif-chain should not finish after the end of the \EndIf
MWE
\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{algpseudocodex}
\usepackage{algorithm}
\begin{document}
\begin{algorithm}[H]
\begin{algorithmic}[1]
\If{test}
\Comment{indent line end before else: wrong.}
\For{\(a \in A\)}
\State{for body}
\EndFor{}
\ElsIf{elseif}\Comment{indent line end after else: correct.}
\State{state in elsif}
\Else{}
\State{state in else}
\EndIf{}
\If{test}\Comment{indent line end after elsif: correct.}
\State{state in if}
\ElsIf{elseif}
\Comment{indent line end before else: wrong.}
\For{\(a \in A\)}
\State{for body}
\EndFor{}
\Else{}
\State{state in else}
\EndIf{}
\LComment{all correct.}
\If{test}
\State{state in if}
\ElsIf{elseif}
\State{state in elsif}
\Else{}
\State{state in else}
\EndIf{}
\end{algorithmic}
\end{algorithm}
\end{document}
Issue
When the if/elsif/else blocks contain another block, then the indent line finishes before the end of the if chain.
What is expected
The indent line of a if-elsif-chain should not finish after the end of the
\EndIf
MWE
main.pdf
Configuration