Is it possible to avoid linebreak before tasks in xsim?
\documentclass{article}
\usepackage{xsim,tasks,ulem}
\loadxsimstyle{layouts}
\xsimsetup{%
exercise/template = mytemplate ,
solution/template = mytemplate
}
\DeclareExerciseEnvironmentTemplate{mytemplate}
{%
\par\medskip
\parbox{0.05\textwidth}{
\textbf{\uline{\GetExerciseProperty{counter}\hfill
}}}
\parskip6pt
\parindent10pt
\raggedright
\hangindent=0.06\textwidth
\hangafter1
\rmfamily
}{
\par\ignorespaces
\medskip
}
\settasks{
label-width=12pt,
label-offset=6pt,
item-indent = 0.06\textwidth+18pt,
column-sep = 3pt,
after-skip = -6pt,
after-item-skip = 1pt
}
\begin{document}
\section*{Exercises}
\begin{exercise}
The question concerne the solution.
\end{exercise}
\begin{solution}
\begin{tasks}(2)
\task Here I like to start on the same line
\task So it is more compact
\end{tasks}
\end{solution}
\printsolutions
\end{document}