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:
parent
05b5883f07
commit
30dfc4ae71
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue