white-space: pre-wrap
Of course, you can use <pre> to keep the format:
<pre>
...
</pre>
But the question is, it will not wrap the line when text overflow, so the best way is to add a CSS property in the <p>
<p style="white-space: pre-wrap;">
...
</p>