lib/lookbook/services/code/code_beautifier.rb in lookbook-1.3.3 vs lib/lookbook/services/code/code_beautifier.rb in lookbook-1.3.4
- old
+ new
@@ -10,10 +10,10 @@
end
def call
language = opts.fetch(:language, "html")
stripped_source = source.strip
- result = language.downcase == "html" ? HtmlBeautifier.beautify(stripped_source, opts) : stripped_source
+ result = (language.downcase == "html") ? HtmlBeautifier.beautify(stripped_source, opts) : stripped_source
result.to_s.strip.html_safe
rescue
source.strip.html_safe
end
end