I need an environment in which newlines are treated as newlines and that adds something at the end of lines followed by an empty line. Alltt is changing too many things, and even the font therefore i do not use it.
I provide my mwe, and an illustration done in lowriter. As I have no idea how to do it, i have not done anything for the new environment.
\documentclass[a4paper]{article}
\usepackage{fancyhdr}
\setlength{\parindent}{0pt}
\fancyhead[C]{lipsum text (dummy text)}
\begin{document}
lipsum text \ (dummy text)
\begin{myenv}
Laborum molestias nam
possimus omnis. Libero sit
maiores quas asperiores nobis
est nulla. Culpa sequi iste deserunt. ||
Adipisci fuga et quis dicta est et
odit. Illo aut nulla qui incidunt
necessitatibus nulla qui. Sunt
cumque voluptatem quasi quam ||
\textbf{the peacock says ...}
commodi culpa quaerat sunt.
Debitis accusantium et porro et
libero nulla ut est. Asperiores sed
exercitationem aut. Ex sapiente ||
\textbf{the elephant says ...}
Debitis nobis fugiat doloremque
voluptates enim ratione. Unde ||
magni beatae magni. Unde
voluptatum qui odio corporis quia. ||
\end{myenv}
\end{document}
\z as defined here is the stuff I need to add at the end of each line followed by an empty line:
\newcounter{versenum}\setcounter{versenum}{1}
\newcommand{\z}{\arabic{versenum}\addtocounter{versenum}{1}}


