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:
parent
9d52c30cdd
commit
120315f90d
|
@ -160,7 +160,10 @@ module.exports =
|
||||||
when "Handlebars"
|
when "Handlebars"
|
||||||
# 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))
|
||||||
|
|
Loading…
Reference in New Issue