aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortim <tdixon51793@gmail.com>2011-12-21 05:08:22 +0800
committerMike Dirolf <mike@dirolf.com>2012-01-15 00:45:35 +0800
commite5188ca6cc170b83a7145b10deb9edd4c051e9d0 (patch)
tree864cbe524e141f006c0a964185d58b69ada4ca61
parent1a291cf491a8e6aa4a2e602f5f732d1092fba2a6 (diff)
downloadmarkdown-e5188ca6cc170b83a7145b10deb9edd4c051e9d0.tar.gz
markdown-e5188ca6cc170b83a7145b10deb9edd4c051e9d0.tar.bz2
markdown-e5188ca6cc170b83a7145b10deb9edd4c051e9d0.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 """