X-Git-Url: http://unremediatedgender.space/source?p=Ultimately_Untrue_Thought.git;a=blobdiff_plain;f=plugins%2Fsimple_footnotes.py;h=11cf31088dfd5d762c161ccd86c077a7e1323106;hp=890cb1b87bf58ee05e9601537729a7f9a54b587f;hb=1881f3a3d4932e2eebcc1aea119470ef96a36838;hpb=2980fe3c905fc76f325ccf830abc2f03d8a4ad43 diff --git a/plugins/simple_footnotes.py b/plugins/simple_footnotes.py index 890cb1b..11cf310 100644 --- a/plugins/simple_footnotes.py +++ b/plugins/simple_footnotes.py @@ -22,7 +22,7 @@ def getText(node, recursive=False): else: if not recursive: return None - L.append(getText(n)) + L.append(getText(n, recursive)) return u''.join(L) @@ -56,7 +56,9 @@ def parse_for_footnotes(article_or_page_generator): 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")