\documentclass{book}
\usepackage{stackengine}
\usepackage{ulem}
\renewcommand{\baselinestretch}{4}
\begin{document}
\stackunder{\uline{this a text this a text this a text this a text this a text this a text this a text this a text this a text this a text this a text this a text this a text this a text this a text this a text this a text this a text}}{text1}
\uline
{
\stackunder{\stackunder{ text this a text this a text this a text this a text this a text this}{\uline{text1}}}{text 2} \\
\stackunder{ text this a text this a text this a text this a text this a text this}{Cont. text1}\\
\stackunder{ text this a text this a text this a text this a text this a text this}{Cont. text1}
}
\end{document}
I am trying to make underlined text with some text under. for that i have used stackengine package to put some text under that line. but it is a hbox type and it is not possible to be wrap automatically and it should be updated under text also
I can do that manually but in most cases those stuff which i want to be underlined with text under it is long. another thing it should be capable to do nested underlined text also so pls help me to solve this issue

