Why can't beamer skip white spaces when looking for \end{frame} in a fragile frame?

Why can't beamer skip white spaces when looking for \end{frame} in a fragile frame?

We all know that when using a fragile frame in beamer one has to be careful to make the \end{frame} command appear exactly at the beginning of the line. I understand why the problem arises: the ...