This problem was fixed in beamer v3.37, if you still experience this problem try to update to a recent version of beamer
Suddenly I am no longer able to indent \end{frame} for slides with the fragile option, e.g.
\documentclass{beamer}
\begin{document}
\begin{frame}[fragile]
test
\end{frame}
\end{document}
does not work but gives the error File ended while scanning use of \next.
Comparing the logfiles to previous presentations showed different versions of the beamer package and taking a look at recent changes made I think I was able to pinpoint the responsible commit to 2e946022 where
\beamer@makeinnocent\^^I % Allow tab chars
was added to the package.
As I understand this allows the usage of tabs in listings. While this might be helpful for people who actually use tabs inside listings it breaks backwards compatibility with many of my presentations and, to be honest, I like the ability to indent code, because it make it easier to read for me.
Question:
Long story short: Can I somehow revert this locally? Preferably without hacking my local LaTeX distribution so that the fix will survive further updates?
\begin{frame}and\end{frame}. That's all. By the way, I see no purpose in indenting the whole document. – egreg Mar 24 '15 at 10:45