Commits

Roland Meister  committed a4b748b

Introduce _footnote_label_template global variable for customization.

  • Participants
  • Parent commits e068f22

Comments (0)

Files changed (1)

File sphinx/builders/epub.py

 
 _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
                     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)