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

Issue while formatting handlebars #1415

Closed
rastogiachyut opened this issue Jun 13, 2018 · 2 comments
Closed

Issue while formatting handlebars #1415

rastogiachyut opened this issue Jun 13, 2018 · 2 comments

Comments

@rastogiachyut
Copy link

This code:

	{{#isDealLink}}
	&nbsp;&nbsp;<a target="_blank" href="{{dealLink}}" class="weak">See offer details</a>
	{{/isDealLink}}

Is formatted to:

            {{#isDealLink}} &nbsp;&nbsp;
                <a target="_blank" href="{{dealLink}}" class="weak">See offer details</a> {{/isDealLink}}

I'd like it to be:

            {{#isDealLink}} &nbsp;&nbsp;
                <a target="_blank" href="{{dealLink}}" class="weak">See offer details</a>
            {{/isDealLink}}

are there some formatting options available for this? Please ignore indentation differences, what is want is for {{/isDealLink}} to be on a separate line. There seems to be a problem in the regex used, it looks for {{ instead of {{/ when indenting for the end.

@bitwiseman
Copy link
Member

#660

@MacKLess
Copy link
Collaborator

Per version v.1.8.0-rc2, the output looks like this:

{{#isdeallink}}
    &nbsp;&nbsp;<a target="_blank" href="{{dealLink}}" class="weak">See offer details</a>
{{/isdeallink}}

Probably worth calling this fixed.

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

No branches or pull requests

3 participants