Skip to content

Commit 5e437a0

Browse files
committed
lint cleanup
1 parent 62b12b7 commit 5e437a0

File tree

2 files changed

+22
-24
lines changed

2 files changed

+22
-24
lines changed

markdown/extensions/footnotes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def extendMarkdown(self, md):
9595

9696
# Insert a tree-processor to reorder the footnotes if necessary. This must be after
9797
# `inline` tree-processor so it can access the footnote reference order
98-
# (self.footnote_order) that gets populated by the FootnoteInlineProcessor.
98+
# (`self.footnote_order`) that gets populated by the `FootnoteInlineProcessor`.
9999
md.treeprocessors.register(FootnoteReorderingProcessor(self), 'footnote-reorder', 19)
100100

101101
# Insert a tree-processor that will run after inline is done.

tests/test_syntax/extensions/test_footnotes.py

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -484,29 +484,27 @@ def test_footnote_references_within_loose_list(self):
484484
[^second]: Second footnote definition
485485
'''
486486
),
487-
self.dedent(
488-
'''
489-
<ul>
490-
<li>
491-
<p>Reference to <sup id="fnref:first"><a class="footnote-ref" href="#fn:first">1</a></sup></p>
492-
</li>
493-
<li>
494-
<p>Reference to <sup id="fnref:second"><a class="footnote-ref" href="#fn:second">2</a></sup></p>
495-
</li>
496-
</ul>
497-
<div class="footnote">
498-
<hr />
499-
<ol>
500-
<li id="fn:first">
501-
<p>First footnote definition&#160;<a class="footnote-backref" href="#fnref:first" title="Jump back to footnote 1 in the text">&#8617;</a></p>
502-
</li>
503-
<li id="fn:second">
504-
<p>Second footnote definition&#160;<a class="footnote-backref" href="#fnref:second" title="Jump back to footnote 2 in the text">&#8617;</a></p>
505-
</li>
506-
</ol>
507-
</div>
508-
'''
509-
)
487+
'<ul>\n'
488+
'<li>\n'
489+
'<p>Reference to <sup id="fnref:first"><a class="footnote-ref" href="#fn:first">1</a></sup></p>\n'
490+
'</li>\n'
491+
'<li>\n'
492+
'<p>Reference to <sup id="fnref:second"><a class="footnote-ref" href="#fn:second">2</a></sup></p>\n'
493+
'</li>\n'
494+
'</ul>\n'
495+
'<div class="footnote">\n'
496+
'<hr />\n'
497+
'<ol>\n'
498+
'<li id="fn:first">\n'
499+
'<p>First footnote definition&#160;<a class="footnote-backref" href="#fnref:first" '
500+
'title="Jump back to footnote 1 in the text">&#8617;</a></p>\n'
501+
'</li>\n'
502+
'<li id="fn:second">\n'
503+
'<p>Second footnote definition&#160;<a class="footnote-backref" href="#fnref:second" '
504+
'title="Jump back to footnote 2 in the text">&#8617;</a></p>\n'
505+
'</li>\n'
506+
'</ol>\n'
507+
'</div>\n'
510508
)
511509

512510
def test_footnote_reference_within_html(self):

0 commit comments

Comments
 (0)