On Sat, Jan 21, 2023 at 03:12:15PM +0100, Patrice Dumas wrote: > > I have started work on this, incrementing a counter at the > > @footnote open brace and decrement it at the closing brace (following > > the places in the code where ct_brace_command is popped from the > > context stack), but there are three different places in the code where > > the context is popped at the closing brace. It would be clearer if this > > code could be unified. > > > > I expect that this new code could take over the existing use of the > > context brace context (for @caption, @shortcaption and @footnote), > > so I suggest that we could add this new code first, then try to simplify > > afterwards. > > Ok.
In a recent commit I reduced the number of places from three to two. It means that spaces are ignored after @caption as caption was inside %command_ignore_space_after although this was not being used in the removed block of code.