Footnotes in ReST

Blake Garretson blake.garretson at gmail.com
Sat Oct 3 10:14:42 EDT 2015


On Oct 3, 2015 7:40 AM, "Steven D'Aprano" <steve at pearwood.info> wrote:
> I need to add a footnote between [2] and [3], but I don't want to have to
> renumber the following 997 footnotes by hand. Is there something I can do,
> within the syntax of ReST itself, to help?

I would use a regular expression to find and replace all the numbers with
the auto-numbering feature.  So something like "\[\d+\]_" should be
replaced with "\[#\]_".

###
Blake T. Garretson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20151003/4eb49865/attachment.html>


More information about the Python-list mailing list