aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortim <tdixon51793@gmail.com>2011-12-20 15:08:22 -0600
committertim <tdixon51793@gmail.com>2011-12-20 15:11:29 -0600
commit1663d3fb0d6d7613efda49648ce86f8f72e52ff2 (patch)
tree0a9c04474b02b779818e30d74f3c66b7023c7bab
parent7393f58c14d8dad6194c4845d545a3d7f7ccbf2e (diff)
downloadmarkdown-1663d3fb0d6d7613efda49648ce86f8f72e52ff2.tar.gz
markdown-1663d3fb0d6d7613efda49648ce86f8f72e52ff2.tar.bz2
markdown-1663d3fb0d6d7613efda49648ce86f8f72e52ff2.zip
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.
-rw-r--r--markdown/extensions/footnotes.py4
1 files 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, "&#8617;")
- 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, "&#160;")
def makeExtension(configs=[]):
""" Return an instance of the FootnoteExtension """