We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74441db commit 3335855Copy full SHA for 3335855
fnsort.py
@@ -58,9 +58,7 @@ def sort_footnotes(text):
58
# Determine the order of the footnote-links in the text. If a link is used
59
# more than once, its order is its first position.
60
order = []
61
- for i in links:
62
- if order.count(i[1]) == 0:
63
- order.append(i[1])
+ [order.append(i[1]) for i in links if i[1] not in order]
64
65
# print(f"order: {order}")
66
0 commit comments