projects
/
Ultimately_Untrue_Thought.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drafting "Challenges to Yudkowsky's Pronoun Reform Proposal"
[Ultimately_Untrue_Thought.git]
/
plugins
/
simple_footnotes.py
diff --git
a/plugins/simple_footnotes.py
b/plugins/simple_footnotes.py
index
0ea8383
..
11cf310
100644
(file)
--- a/
plugins/simple_footnotes.py
+++ b/
plugins/simple_footnotes.py
@@
-56,7
+56,9
@@
def parse_for_footnotes(article_or_page_generator):
if leavealone:
continue
count += 1
if leavealone:
continue
count += 1
- fnid = u"sf-%s-%s" % (article.slug, count)
+
+ short_slug = "-".join(article.slug.split('-')[:5])
+ fnid = u"%s-note-%s" % (short_slug, count)
fnbackid = u"%s-back" % (fnid,)
endnotes.append((footnote, fnid, fnbackid))
number = dom.createElement(u"sup")
fnbackid = u"%s-back" % (fnid,)
endnotes.append((footnote, fnid, fnbackid))
number = dom.createElement(u"sup")