Skip to content
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

Syntax to trim trailing whitespace? #89

Open
hdm opened this issue Mar 19, 2019 · 1 comment
Open

Syntax to trim trailing whitespace? #89

hdm opened this issue Mar 19, 2019 · 1 comment
Labels
enhancement New feature or request proposal A suggestion for a change, feature, enhancement, etc
Milestone

Comments

@hdm
Copy link

hdm commented Mar 19, 2019

It would be nice if there was a syntax that trimmed the whitespace from template when using an evaluated value (and did so automatically for <% %>). This is implemented in ERB (ruby) as the "<%- %>" syntax (https://stackoverflow.com/questions/4632879/erb-template-removing-the-trailing-line).

For example, it would be great if the following template returned <pre>Hello</pre>

<pre>
<%- "Hello" %>
</pre>
@stanislas-m stanislas-m added enhancement New feature or request proposal A suggestion for a change, feature, enhancement, etc labels Apr 5, 2019
@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment. Otherwise, this will be closed in 7 days.

@github-actions github-actions bot added the stale label Sep 27, 2022
@sio4 sio4 added this to the Proposal milestone Sep 27, 2022
@sio4 sio4 removed the stale label Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request proposal A suggestion for a change, feature, enhancement, etc
Projects
None yet
Development

No branches or pull requests

3 participants