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

@ -161,6 +161,9 @@ module.exports =
# jshint ignore: start # jshint ignore: start
allOptions.push indent_handlebars: true # Force jsbeautify to indent_handlebars 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" when "HTML (Liquid)", "HTML", "XML"
beautifyHTML ?= require("js-beautify").html beautifyHTML ?= require("js-beautify").html
text = beautifyHTML(text, self.getOptions("html", allOptions)) text = beautifyHTML(text, self.getOptions("html", allOptions))