Consecutively to this question, I need to add something after the inclusion of on itemed file to be sure that what comes next begins on a nexwline. I don't want skip blanck line in the source I'd like the command makes it for me.
A MWE :
A more realistic example, problem between n10 et n11 :
\begin{filecontents*}{typea.tex}
here latex stuff
\end{filecontents*}
\begin{filecontents*}{typeb.tex}
\begin{minipage}{5cm}
\item here latex stuff
more stuff
\end{minipage}
\end{filecontents*}
\documentclass{article}
\usepackage{xparse,l3regex}
% #### tarassinput pour les item dans les minipages
\ExplSyntaxOn
\NewDocumentCommand{\tarassinput}{om}
{
\tl_set_from_file:Nnn \l_tarass_input_tl { } { #2 }
% \A matches the start
% \c{begin} matches \begin
% \cB. matches any "group begin" token
% \cE. matches any "group end" token
\regex_match:nVF
{ \A \c{begin} \cB. minipage \cE. }
\l_tarass_input_tl
{ \IfValueTF{#1}{ \item[#1] }{ \item } }
\tl_use:N \l_tarass_input_tl
}
\cs_generate_variant:Nn \regex_match:nnF { nV }
\ExplSyntaxOff
\begin{document}
\begin{itemize}
\item Start
\tarassinput{typea}
\tarassinput{typeb}
\end{itemize}
\end{document}



