Delete Spaces Before Note References Scans your document main body text for any footnote/endnote references, and then deletes any space characters found in front of those note references.
For instructions on how to install this macro (and more macros) see the Macro Repository.