Introduce _footnote_label_template global variable for customization.

This commit is contained in:
Roland Meister
2013-03-11 22:02:57 +01:00
parent 234c0c0c75
commit f276939666
+3 -1
View File
@@ -131,6 +131,8 @@ _toctree_template = u'toctree-l%d'
_link_target_template = u' [%(uri)s]'
_footnote_label_template = u'#%d'
_css_link_target_class = u'link-target'
# XXX These strings should be localized according to epub_language
@@ -324,7 +326,7 @@ class EpubBuilder(StandaloneHTMLBuilder):
link['classes'].append(_css_link_target_class)
node.parent.insert(idx, link)
elif show_urls == 'footnote':
label = "#%d" % nr
label = _footnote_label_template % nr
nr += 1
footnote_ref = make_footnote_ref(doc, label)
node.parent.insert(idx, footnote_ref)