ruby-changes:26521
From: zzak <ko1@a...>
Date: Sun, 23 Dec 2012 16:07:31 +0900 (JST)
Subject: [ruby-changes:26521] zzak:r38572 (trunk): * lib/erb.rb: Document ERB::new trim_mode '-' for lines ending in -%>
zzak 2012-12-23 16:07:18 +0900 (Sun, 23 Dec 2012) New Revision: 38572 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38572 Log: * lib/erb.rb: Document ERB::new trim_mode '-' for lines ending in -%> [ruby-core:51084] [Bug #7608] Modified files: trunk/ChangeLog trunk/lib/erb.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 38571) +++ ChangeLog (revision 38572) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Dec 23 16:06:00 2012 Zachary Scott <zachary@z...> + + * lib/erb.rb: Document ERB::new trim_mode '-' for lines ending in -%> + [ruby-core:51084] [Bug #7608] + Sun Dec 23 15:25:00 2012 Zachary Scott <zachary@z...> * lib/irb/ruby-lex.rb: Add handling for %i and %I quoting to irb Index: lib/erb.rb =================================================================== --- lib/erb.rb (revision 38571) +++ lib/erb.rb (revision 38572) @@ -740,6 +740,7 @@ class ERB https://github.com/ruby/ruby/blob/trunk/lib/erb.rb#L740 # % enables Ruby code processing for lines beginning with % # <> omit newline for lines starting with <% and ending in %> # > omit newline for lines ending in %> + # - omit blank lines ending in -%> # # _eoutvar_ can be used to set the name of the variable ERB will build up # its output in. This is useful when you need to run multiple ERB -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/