New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extra new lines added #43
Comments
In the newest version of EJS there is the -%> tag ... So changing you code to the below should fix the issue. A list of famous people: |
This is resolved and can be closed @visionmedia |
@ForbesLindesay I still have the same problem: <% var fruits = ["Apple", "Pear", "Orage", "Lemon"] %>
<ul>
<% for(var i = 0; i < fruits.length; ++i) {%>
<li><%=fruits[i]%></li>
<% } %>
</ul> Renders: <ul>
<li>Apple</li>
<li>Pear</li>
<li>Orage</li>
<li>Lemon</li>
</ul> How can I prevent the empty lines? |
Also, I just posted this question: http://stackoverflow.com/q/36175454/1420197 |
@IonicaBizau: |
@tj Oh, right! 👍 Is there a place where these are documented? |
FWIW, this version of EJS isn't maintained anymore. The current one (with additional whitespace modes) is here: https://github.com/mde/ejs |
👍 |
1 similar comment
👍 |
This solved my issue as well 👏 |
I have a template:
Which generates:
Could the new lines be removed?
The text was updated successfully, but these errors were encountered: