flush footnote line when finishing a footnote.
output footnote block at the end of each page, and clear it ready
for the next page.
draw footnote block in roughly the right place.