html2haml --rhtml shouldn't add semicolons for multiline <%= %> blocks.

This breaks when there are actually multiple statments,
but that occurs very rarely.
This commit is contained in:
Nathan Weizenbaum 2008-07-02 00:41:08 -04:00
parent 37fc2c2ba2
commit 1a23b54d3b
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ module Haml
end end
def self.haml_tag_loud(text) def self.haml_tag_loud(text)
"= #{text.gsub(/\n\s*/, '; ').strip}\n" "= #{text.gsub(/\n\s*/, ' ').strip}\n"
end end
def self.haml_tag_silent(text) def self.haml_tag_silent(text)