aboutsummaryrefslogtreecommitdiffstats
path: root/mdx_footnotes.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-02-08 04:27:00 +0000
committerWaylan Limberg <waylan@gmail.com>2008-02-08 04:27:00 +0000
commit00d8f08df7e7c7de78161affcfc79380d4a0ecb9 (patch)
tree75122af13a17feec79f1d6852a6f434a8e5e798b /mdx_footnotes.py
parenteaa5437701f4862470f84b0b45ecea2543d66627 (diff)
downloadmarkdown-00d8f08df7e7c7de78161affcfc79380d4a0ecb9.tar.gz
markdown-00d8f08df7e7c7de78161affcfc79380d4a0ecb9.tar.bz2
markdown-00d8f08df7e7c7de78161affcfc79380d4a0ecb9.zip
fixed some basic white space issues in code with mdx_footnotes.py. Fixed [1877510].
Diffstat (limited to 'mdx_footnotes.py')
-rw-r--r--mdx_footnotes.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/mdx_footnotes.py b/mdx_footnotes.py
index b9641ce..de79ed4 100644
--- a/mdx_footnotes.py
+++ b/mdx_footnotes.py
@@ -130,13 +130,13 @@ class FootnoteExtension (markdown.Extension):
if li.childNodes :
node = li.childNodes[-1]
if node.type == "text" :
- li.appendChild(backlink)
- elif node.nodeName == "p":
+ li.appendChild(backlink)
+ elif node.nodeName == "p":
node.appendChild(backlink)
- else:
- p = doc.createElement('p')
- p.appendChild(backlink)
- li.appendChild(p)
+ else:
+ p = doc.createElement('p')
+ p.appendChild(backlink)
+ li.appendChild(p)
ol.appendChild(li)