Hello, Tassilo Horn <tass...@member.fsf.org> writes:
> org-footnote-renumber-fn:N invalidates footnotes that appear as the > first thing on a line. Here's a test file including the recipe. > > * Bla > > This is a line in which the following footnote that is inserted exactly > [fn:1] is the first thing in that line. And now invoke > org-footnote-renumber-fn:N and see it breaking. > > * Footnotes > > [fn:1] Test > > Note, that in larger org files, it's likely that you don't even notice > that the footnotes break. It looks like the original function isn't right in more than one way (it doesn't even make sure the matched string is really a footnote). But that's another topic. About your patch, I have but one question: I don't get a situation in which the assert would be triggered, may you give me such an example? Regards, -- Nicolas Goaziou