From: Federico Builes Date: 2008-07-02T08:30:21+09:00 Subject: [ruby-core:17491] [Ruby 1.8.7 - Bug #213] (Open) Different ERB behavior across versions Issue #213 has been reported by Federico Builes. ---------------------------------------- Bug #213: Different ERB behavior across versions http://redmine.ruby-lang.org/issues/show/213 Author: Federico Builes Status: Open Priority: Normal Assigned to: Category: Target version: I'm seeing some differences in ERB processing across 1.8.6, 1.8.7 and 1.9. 1.8.6 and 1.9 behave the same while 1.8.7 differs: $ cat foo.rb require 'erb' str = <<'END' %%% END p ERB.new(str, nil, "%").result $ ruby -v foo.rb ruby 1.8.6 (2008-06-29 patchlevel 255) [i686-darwin9.3.0] "\n%%\n" $ ruby-1.9 -v foo.rb ruby 1.9.0 (2008-06-10 revision 15929) [i686-darwin9.3.0] "\n%%\n" $ ruby-1.8.7 -v foo.rb ruby 1.8.7 (2008-05-31 patchlevel 0) [i686-darwin9.3.0] "\n%" In order: # 1.8.6 => "\n%%\n" # 1.9 => "\n%%\n" # 1.8.7 => "\n%" I think this is a bug in 1.8.7 but I'd like some clarification. ---------------------------------------- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://redmine.ruby-lang.org/my/account