I am having problems displaying algorithms. The wrapping is really ugly and I can't, for the life of me, find a fix that doesn't involve manually tweaking the hell out of everything, to the point that I might as well scrap the crappy algorithm packages and write everything out in TeX.
Is there any way to properly indent the following
\documentclass{article}
\usepackage{algorithm}
\usepackage{algpseudocode}
\begin{document}
\begin{algorithm}
\caption{My pseudo code.}
\begin{algorithmic}[1]
\While{this line is sooooooooooo long and boring and too much for algorithmic to handle}
\State look at this state, this state is just too long for algorithmic to display it properly
\While{again this line is sooooooooooo long and boring and too much for algorithmic too handle}
\State look at this state again, this state is just too long for algorithmic to handle, I'm just going to switch to Word
\EndWhile
\EndWhile
\end{algorithmic}
\end{algorithm}
\end{document}
so that the output is similar to