Fixes #110. Fixes Handlebars missing beautification

When converting JavaScript to CoffeeScript the case for Handlebars
did not fallback to the HTML case.
This commit is contained in:
Glavin Wiechert 2014-10-05 13:20:15 -03:00
parent 9d52c30cdd
commit 120315f90d
1 changed files with 4 additions and 1 deletions

View File

@ -160,7 +160,10 @@ module.exports =
when "Handlebars"
# jshint ignore: start
allOptions.push indent_handlebars: true # Force jsbeautify to indent_handlebars
# jshint ignore: end
# jshint ignore: end
beautifyHTML ?= require("js-beautify").html
text = beautifyHTML(text, self.getOptions("html", allOptions))
beautifyCompleted text
when "HTML (Liquid)", "HTML", "XML"
beautifyHTML ?= require("js-beautify").html
text = beautifyHTML(text, self.getOptions("html", allOptions))