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:
nex3 2007-03-16 03:07:43 +00:00
parent e4db42dea4
commit 0050e1e557
1 changed files with 1 additions and 1 deletions

View File

@ -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