From e5188ca6cc170b83a7145b10deb9edd4c051e9d0 Mon Sep 17 00:00:00 2001 From: tim Date: Wed, 21 Dec 2011 05:08:22 +0800 Subject: fixed an error in the BACKLINK_TEXT option in the footnotes extension. I accidentally changed the wrong line (L294 instead of L293) to "self.footnotes.getConfig("BACKLINK_TEXT")" before. This fixes that. --- markdown/extensions/footnotes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markdown/extensions/footnotes.py b/markdown/extensions/footnotes.py index a4c897b..2f3ceac 100644 --- a/markdown/extensions/footnotes.py +++ b/markdown/extensions/footnotes.py @@ -290,8 +290,8 @@ class FootnotePostprocessor(markdown.postprocessors.Postprocessor): self.footnotes = footnotes def run(self, text): - text = text.replace(FN_BACKLINK_TEXT, "↩") - return text.replace(NBSP_PLACEHOLDER, self.footnotes.getConfig("BACKLINK_TEXT")) + text = text.replace(FN_BACKLINK_TEXT, self.footnotes.getConfig("BACKLINK_TEXT")) + return text.replace(NBSP_PLACEHOLDER, " ") def makeExtension(configs=[]): """ Return an instance of the FootnoteExtension """ -- cgit v1.2.3