I can't find, how to remove the space between the blocks here? (the fbox will ultimately be removed, they are just used to show the problem) And more generally, how could I debug this in order to find what is posing a problem?
MWE:
\documentclass[]{article}
\usepackage[most]{tcolorbox}
\usepackage{enumitem}
\NewDocumentEnvironment{cvArray}{m}{%
\def\currentColorIndex{0}%
\NewDocumentCommand{\cvItem}{m+m}{%
\ifnum\currentColorIndex=0%
\def\currentColor{white}%
\else%
\def\currentColor{blue!7!white}%
\fi%
\pgfmathsetmacro\currentColorIndex{int(mod(\currentColorIndex+1,2))}%
\noindent\setlength\fboxsep{0pt}\fbox{\noindent\begin{tcolorbox}[enhanced,title=,
frame hidden,
colback=\currentColor,
breakable,
left=5pt,
right=10pt,
top=5pt,
bottom=5pt,
boxsep=0mm,
arc=0mm,boxrule=0pt,
nobeforeafter,
]
\begin{enumerate}[nosep,leftmargin=#1]
\item[{\raisebox{0pt}[\height][0pt]{%
\parbox[t]{#1}{\centering ##1}%
}}] ##2
% \item[AAA] ##2
\end{enumerate}
\end{tcolorbox}}
}%
}{%
}
\begin{document}
How to remove the small space between the boxes?
\begin{cvArray}{4cm}
\cvItem{Foo}{ Blaa bla}
\cvItem{Foo}{ Blaa bla}
\cvItem{Foo}{ Blaa bla}
\cvItem{Foo}{ Blaa bla}
\cvItem{Foo}{ Blaa bla}
\end{cvArray}
\end{document}



\lineskip=0pttemporarily. – John Kormylo Nov 09 '23 at 20:43