Skip to content

Commit

Permalink
Fixes #110. Fixes Handlebars missing beautification
Browse files Browse the repository at this point in the history
When converting JavaScript to CoffeeScript the case for Handlebars
did not fallback to the HTML case.
  • Loading branch information
Glavin001 committed Oct 5, 2014
1 parent 9d52c30 commit 120315f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/language-options.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 120315f

Please sign in to comment.