Peter Otten wrote:
> Changing numbers to make room for a new footnote is not much harder (but
> less convenient as you have to repeat it for every new footnote):
>
def replace(match, n=2):
> ... index = int(match.group(1))
> ... if index >= n:
> ... index += 1
> ... retur
Blake Garretson wrote:
> On Oct 3, 2015 7:40 AM, "Steven D'Aprano" 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 reg
On Oct 3, 2015 7:40 AM, "Steven D'Aprano" 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 repla
On Sat, 3 Oct 2015 10:21 pm, Laura Creighton wrote:
> In a message of Sat, 03 Oct 2015 21:39:26 +1000, "Steven D'Aprano" writes:
>>I have a document written in Restructured Text format, and I use lots of
>>footnotes:
[...]
> You shouldn't have numbered them manually in the first place.
> Use '#' i
In a message of Sat, 03 Oct 2015 21:39:26 +1000, "Steven D'Aprano" writes:
>I have a document written in Restructured Text format, and I use lots of
>footnotes:
>
>blah blah blah [1]_ and blah blah blah [2]_.
>blah blah [3]_ blah ... blah blah
>blah blah [999]_.
>
>.. [1] fe
>..
On Sat, Oct 3, 2015 at 9:39 PM, Steven D'Aprano 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?
Now that they're all numbered manually? Not
I have a document written in Restructured Text format, and I use lots of
footnotes:
blah blah blah [1]_ and blah blah blah [2]_.
blah blah [3]_ blah ... blah blah
blah blah [999]_.
.. [1] fe
.. [2] fi
.. [3] fo
...
.. [999] fum
I need to add a footnote between