summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/strc-itm.mklx
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkxl/strc-itm.mklx')
-rw-r--r--tex/context/base/mkxl/strc-itm.mklx11
1 files changed, 10 insertions, 1 deletions
diff --git a/tex/context/base/mkxl/strc-itm.mklx b/tex/context/base/mkxl/strc-itm.mklx
index 3ccc5358e..13b750ce3 100644
--- a/tex/context/base/mkxl/strc-itm.mklx
+++ b/tex/context/base/mkxl/strc-itm.mklx
@@ -203,7 +203,7 @@
% 0 = before/after
% 1 = between unless before
-% 2 = between
+% 2 = between (auto)
\newconstant \c_strc_itemgroups_spacing_mode \c_strc_itemgroups_spacing_mode\plustwo
\newconditional\c_strc_itemgroups_optimize \settrue\c_strc_itemgroups_optimize
@@ -909,6 +909,15 @@
\doadaptleftskip {\itemgroupparameter\c!leftmargindistance}%
\doadaptrightskip{\itemgroupparameter\c!rightmargindistance}%
%
+ \edef\m_strc_itemgroups_spacing{\itemgroupparameter\c!spacing}%
+ \ifx\m_strc_itemgroups_spacing\v!before
+ \c_strc_itemgroups_spacing_mode\zerocount
+ \orelse\ifx\m_strc_itemgroups_spacing\v!inbetween
+ \c_strc_itemgroups_spacing_mode\plusone
+ \orelse\ifx\m_strc_itemgroups_spacing\v!auto
+ \c_strc_itemgroups_spacing_mode\plustwo
+ \fi
+ %
\usealignparameter\itemgroupparameter
\edef\m_strc_itemgroups_indenting{\itemgroupparameter\c!indenting}%
\ifnum\c_strc_itemgroups_nesting>\zerocount