Skip to content

suppress leading and trailing whitespace #11

@jgroeneveld

Description

@jgroeneveld

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions