The gaps are most likely caused by an empty paragraph or a line break in the footnotes. Click where the spaces are, then press the backspace key. This will remove any blank lines that may have been put in by the footnote editor.