1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

haml_indent is_a String

This commit is contained in:
Akira Matsuda 2014-10-08 13:19:26 +09:00
parent 05b5883f07
commit 30dfc4ae71

View file

@ -395,7 +395,7 @@ MESSAGE
#
# @param text [#to_s] The text to output
def haml_concat(text = "")
if haml_buffer.options[:ugly] || haml_indent == 0
if haml_buffer.options[:ugly] || haml_buffer.tabulation == 0
haml_buffer.buffer << "#{text}\n"
else
haml_buffer.buffer << %[#{haml_indent}#{text.to_s.gsub("\n", "\n#{haml_indent}")}\n]