Overwrite footer.

Track the position of the footer and overwrite it with the next
non-footer entry.

Closes #213.