diff options
author | Waylan Limberg <waylan@gmail.com> | 2008-02-08 04:27:00 +0000 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2008-02-08 04:27:00 +0000 |
commit | 00d8f08df7e7c7de78161affcfc79380d4a0ecb9 (patch) | |
tree | 75122af13a17feec79f1d6852a6f434a8e5e798b | |
parent | eaa5437701f4862470f84b0b45ecea2543d66627 (diff) | |
download | markdown-00d8f08df7e7c7de78161affcfc79380d4a0ecb9.tar.gz markdown-00d8f08df7e7c7de78161affcfc79380d4a0ecb9.tar.bz2 markdown-00d8f08df7e7c7de78161affcfc79380d4a0ecb9.zip |
fixed some basic white space issues in code with mdx_footnotes.py. Fixed [1877510].
-rw-r--r-- | mdx_footnotes.py | 12 |
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) |