I'm using «memoir» class and I have to change the line-spacing in different paragraph.
I tried to resolve the problem like in Change line spacing inside the document but the answer does not apply in «memoir» class, since in this class the environment "spacing" remains undefined.
\documentclass[12pt,a4paper]{memoir}
\usepackage{xcolor}
\usepackage{lipsum}
\usepackage{setspace}
\renewcommand{\baselinestretch}{1.5}
\begin{document}
\lipsum[1]
{\begin{spacing}{1.0}\color{blue}
\lipsum[2]\end{spacing}
}
\lipsum[3]
\end{document}