I have multiline text in an \item of {itemize} or in {section} and creating a pdf of the document. When I copy the text from the pdf, there is a newline character at the end of each line. I am creating a document that will be read by an AI tool and splitting sentences will mess it up.
How can I configure it to not add those unnecessary newlines?
For example, if I copy the text from the pdf generated from the following code, there is a newline character between character in and the middle
\begin{itemize}
\item This is some text that spans multiple lines. I need the pdf to not have a newline
character in the middle of the sentence in the copied text
\item Some more text.
\end{itemize}
