More intelligent check on footnote and xref final periods