I decided a long time ago that setting footnote markers to the left of
punctuation looks rather bad. Apparently, this code is even older than
that, so it needs fixing. Unfortunately, we don't know the punctuation
in advance, so we need to delay setting the footnotes by yet another
loop iteration. Ugh.