Remove a bunch of extra lines right before footnotes begin.