theranbrig/ejs-snippets

Remove the whitespace following HTML output

Opened this issue · 0 comments

Currently the output snippet is adding a whitespace after the ejs closing tag:

<%= $1 %> $2

I think this whitespace in this case should be stripped away <%= $1 %>$2, let the developer hit the space. Scenario - while building an URL string you can end up with hard to find bug:

<a href="https://example.com/someVar=<%= $1 %> &anotherVar=1">My URL</a>