puts should also to_s the text it outputs.
git-svn-id: svn://hamptoncatlin.com/haml/trunk@412 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
parent
e4db42dea4
commit
0050e1e557
|
@ -187,7 +187,7 @@ module Haml
|
|||
|
||||
# Outputs text directly to the Haml buffer, with the proper tabulation
|
||||
def puts(text = "")
|
||||
buffer.buffer << (' ' * buffer.tabulation) << text << "\n"
|
||||
buffer.buffer << (' ' * buffer.tabulation) << text.to_s << "\n"
|
||||
nil
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue