add missing check for existence of group when flattening group hierarchy

This commit is contained in:
Maximilian Keßler 2022-01-23 16:28:18 +01:00
parent 84503aa5d5
commit d8ce6d2c04

View file

@ -1851,6 +1851,7 @@
}
{
\seq_pop:NN \l_tmpa_seq \l_tmpa_tl
\@@_ensure_group_exists:V \l_tmpa_tl
\clist_if_in:NVF #2 \l_tmpa_tl
{
\clist_put_left:NV #2 \l_tmpa_tl
@ -1972,7 +1973,7 @@
%
%
%
% \begin{macro}{\@@_ensure_group_exists:n}
% \begin{macro}{\@@_ensure_group_exists:n, \@@_ensure_group_exists:V}
% \begin{syntax}
% \cs{@@_ensure_group_exists:n}\meta{theorem group}
% \end{syntax}
@ -1988,6 +1989,7 @@
\msg_error:nnn { groupthm } { unknown ~ group } { #1 }
}
}
\cs_generate_variant:Nn \@@_ensure_group_exists:n { V }
% \end{macrocode}
% \end{macro}
%