Sublime-HTMLPrettify
Sublime-HTMLPrettify copied to clipboard
Issue while formatting handlebars
This code:
{{#isDealLink}}
<a target="_blank" href="{{dealLink}}" class="weak">See offer details</a>
{{/isDealLink}}
Is formatted to:
{{#isDealLink}}
<a target="_blank" href="{{dealLink}}" class="weak">See offer details</a> {{/isDealLink}}
I'd like it to be:
{{#isDealLink}}
<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.
Please file this issue at https://github.com/beautify-web/js-beautify
@victorporof Thanks.