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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

suppress leading and trailing whitespace #11

Open
jgroeneveld opened this issue Feb 19, 2015 · 1 comment
Open

suppress leading and trailing whitespace #11

jgroeneveld opened this issue Feb 19, 2015 · 1 comment

Comments

@jgroeneveld
Copy link

We are using ego for one of our newer services. Very nice indeed 馃憤

One thing is annoying though:

From the Rails ERB Documentation:

When on a line that only contains whitespaces except for the tag, <% %> suppress leading and trailing whitespace, including the trailing newline. <% %> and <%- -%> are the same. Note however that <%= %> and <%= -%> are different: only the latter removes trailing whitespaces.

Maybe ego could handle it in the same way? Especially linebreaks are a problem when writing i.e. markdown.

@okeefm
Copy link

okeefm commented Dec 10, 2015

We also have this issue. It's a problem when you're writing XML, because the newlines before the <?xml > line break the XML spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants