Python/Flask/HTML <plaintext> Output is adding spaces
<p>So i am using python flask to output the result of a script to plain text on a webpage.  When I print the function from CLI the output looks like this:</p>

<pre><code>1
2
3
4
5
</code></pre>

<p>However when it is on the website it looks like this:</p>

<pre><code>1

2

3

4

5
</code></pre>

<p>The output HTML file looks like this:</p>

<pre><code>&lt;plaintext&gt;
{% for rows in report %}
    {{rows}}
{% endfor %}
</code></pre>

<p>Im really not great at HTML, but is there a way to remove the new lines that are added?</p>