Prevent empty lines in ejs for loops
<p>I have the following simple ejs template:</p>

<pre><code>&lt;% for (var i =0; i &lt; 10; ++i) { %&gt;
    - &lt;%- i %&gt;
&lt;% } %&gt;
</code></pre>

<p>This renders the following:</p>

<pre><code>- 0

- 1

- 2

- 3

- 4

- 5

- 6

- 7

- 8

- 9
</code></pre>

<p>How can I prevent ejs to create empty lines like these?</p>

<p>If possible I don't want to modify the result string but to tell ejs to not render these empty lines. How can I do that?</p>