diff options
Diffstat (limited to 'markdown/extensions')
-rw-r--r-- | markdown/extensions/footnotes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/extensions/footnotes.py b/markdown/extensions/footnotes.py index 580dfa0..aa11cbf 100644 --- a/markdown/extensions/footnotes.py +++ b/markdown/extensions/footnotes.py @@ -234,7 +234,7 @@ class FootnotePreprocessor(Preprocessor): fn.insert(0, m.group(2)) i += _i-1 # skip past footnote footnote = "\n".join(fn) - self.footnotes.setFootnote(m.group(1), footnote) + self.footnotes.setFootnote(m.group(1), footnote.rstrip()) # Preserve a line for each block to prevent raw HTML indexing issue. # https://github.com/Python-Markdown/markdown/issues/584 num_blocks = (len(footnote.split('\n\n')) * 2) |