Fix nested footnotes in PDF output.