when inlining footnotes remove ''References'' if it's the last line