Skip to content

Commit

Permalink
Use \hbox_unpack_(drop|clear):N whichever is available
Browse files Browse the repository at this point in the history
`\hbox_unpack_clear:N` was renamed to `\hbox_unpack_drop:N` in 2019,
but some distributions still ship older versions of expl3,
so use "drop" if it's available, and fall back to "clear" if not.
  • Loading branch information
jkuczm committed May 13, 2021
1 parent d63fe41 commit 7ff1d2d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mmacells.sty
Original file line number Diff line number Diff line change
Expand Up @@ -642,10 +642,18 @@
\hbox_set:Nn \@labels
{
\skip_horizontal:N \@totalleftmargin
\hbox_unpack_drop:N \@labels
\__mmacells_hbox_unpack_drop:N \@labels
}
}

% \hbox_unpack_clear:N was renamed to \hbox_unpack_drop:N in 2019,
% but some distributions still ship older versions of expl3.
\if_cs_exist:N \hbox_unpack_drop:N
\cs_new_protected:Npn \__mmacells_hbox_unpack_drop:N { \hbox_unpack_drop:N }
\else:
\cs_new_protected:Npn \__mmacells_hbox_unpack_drop:N { \hbox_unpack_clear:N }
\fi:

\cs_new_protected:Npn \__mmacells_group_insert_after:n #1
{
\cs_gset_protected_nopar:Npn \g__mmacells_tmp_cs { #1 }
Expand Down

0 comments on commit 7ff1d2d

Please sign in to comment.