Just remove the <br>
tags and keep the line breaks. The pre
tag will break the lines where there are line break characters in the text:
<pre>Some text
second line of text
third line
some longer text that will get wrapped on another line
</pre>
Or hide the br
tags using CSS:
pre br { display: none; }