public
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/nex3/haml.git
Don't push all text in :ruby filters onto one line.
nex3 (author)
Tue Jul 15 20:35:08 -0700 2008
commit  9016da55f543ea459dae5e60786b2d5a17eab771
tree    1aab491b8984ebae0837747374f6ba7aed0a7e24
parent  b54ff8dbe6a33bdb9f43b0113e49f1b744b38892
...
187
188
189
190
 
191
192
193
 
194
195
196
 
197
198
199
...
187
188
189
 
190
191
192
 
193
194
195
 
196
197
198
199
0
@@ -187,13 +187,13 @@ END
0
       def compile(precompiler, text)
0
         return if precompiler.options[:suppress_eval]
0
         precompiler.instance_eval do
0
- push_silent <<-END.gsub("\n", ';')
0
+ push_silent <<-FIRST.gsub("\n", ';') + text + <<-LAST.gsub("\n", ';')
0
             _haml_old_stdout = $stdout
0
             $stdout = StringIO.new(_hamlout.buffer, 'a')
0
- #{text}
0
+ FIRST
0
             _haml_old_stdout, $stdout = $stdout, _haml_old_stdout
0
             _haml_old_stdout.close
0
- END
0
+ LAST
0
         end
0
       end
0
     end
...
56
57
58
 
59
60
61
...
56
57
58
59
60
61
62
0
@@ -56,6 +56,7 @@ END
0
 A tab character was used for indentation. Haml must be indented using two spaces.
0
 Are you sure you have soft tabs enabled in your editor?
0
 END
0
+ "foo\n:ruby\n 1\n 2\n 3\n- raise 'foo'" => ["foo", 6],
0
   }
0
 
0
   User = Struct.new('User', :id)

Comments

    No one has commented yet.