Add padding to #footnotes to make it nicer.
Refactored to have a [% PROCESS end_html %]

Instead of a file.