I am formatting an article with one of the ACM journal formats: acmsmall. However, when I look at algorithms, I noticed that the lines of my algorithm lost their indentation.
This problem does not occur in article class.
I have prepared a minimal example to demostrate the issue.
\documentclass{acmsmall}
%\documentclass{article}
\usepackage{algorithm}
\usepackage[noend]{algpseudocode}
\begin{document}
\begin{algorithm}
\caption{MyAlgorithm}
\begin{algorithmic}[1]
\State $A \gets X$
\State $A \gets Y$
\State $A \gets Z$
\State $A \gets X$
\State $A \gets Y$
\State $A \gets Z$
\State $A \gets X$
\State $A \gets Y$
\State $A \gets Z$
\State $A \gets X$
\State $A \gets Y$
\State $A \gets Z$
\end{algorithmic}
\end{algorithm}
\end{document}
I have attached the screenshots of both acmsmall and article. As you can see, after line 10, the indentation of acmsmall is broken.
How can I fix the problem?