Before:
\section{foo}\label{sec:foo}
After reformatting:
\section{foo}
\label{sec:foo}
Although it looks nicer, this actually introduces a bug. Because the newline is treated as a space, it's possible that the space does not fit on the same page, which means that the \label ends up on the next page (resulting in a wrong page number).