When using exsheets package,I have a problem with \printsolution[all].
\documentclass[UTF8,11pt,a4paper]{book}
\usepackage{kantlipsum}
\usepackage[load-tasks=true]{exsheets}
\DeclareInstance{exsheets-heading}{exclist}{default}{
runin = true ,
number-post-code = \space ,
attach = { main[r,vc]number[l,vc](-3em,0pt) } ,
above = 0pt,
below = 0pt
}
\SetupExSheets{
% solution/print = true ,
headings = exclist ,
headings-format = \bfseries,
% counter-format = ch.qu ,
counter-within = chapter
}
\usepackage{scrextend}% needed with a KOMA-Script class, `addmargin' environment
\usepackage{etoolbox}
\AtBeginEnvironment{question}{\addmargin[3em]{0em}}
\AtEndEnvironment{question}{\endaddmargin}
\AtBeginEnvironment{solution}{\addmargin[3em]{0em}}
\AtEndEnvironment{solution}{\endaddmargin}
\begin{document}
\chapter{One}
\section{Sec.\thesection }
This is normal text.
\section*{Using solution environment in section }
\begin{question}
This is sample question 1.
\end{question}
\begin{solution}
This is sample solution 1.
\end{solution}
\begin{question}
This is sample question 2.
\end{question}
\begin{solution}
This is sample solution 2.
\end{solution}
This is normal text. This is normal text. This is normal text. This is normal text. This is normal text.
\section*{Using printsolutions at the end}
\printsolutions
This is normal text. This is normal text. This is normal text. This is normal text. This is normal text.
\end{document}
Output:

The exsheet package works well in the section, but when using \printsolutions at the end of book, the answer beyond the margin. I don't kown how to correct it, anyone can help me ? Thanks !
