Skip to content

Commit

Permalink
Merge pull request #43 from jkuczm/support_older_distros
Browse files Browse the repository at this point in the history
Use `\hbox_unpack_(drop|clear):N` whichever is available
  • Loading branch information
jkuczm authored May 13, 2021
2 parents d63fe41 + 7ff1d2d commit c36af52
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 c36af52

Please sign in to comment.