aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-23 07:07:18 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-23 07:07:18 +0000
commit4fa9e3307dd3b2cf3afea278a833a5d05ddb45de (patch)
tree02618f94e8a4499773936d258d2194696212d44f
parent1f3bf4ce550e7c5208bf214884830daff876587b (diff)
downloadruby-4fa9e3307dd3b2cf3afea278a833a5d05ddb45de.tar.gz
* lib/erb.rb: Document ERB::new trim_mode '-' for lines ending in -%>
[ruby-core:51084] [Bug #7608] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/erb.rb1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 99762a03e0..978ffd534f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Dec 23 16:06:00 2012 Zachary Scott <zachary@zacharyscott.net>
+
+ * 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@zacharyscott.net>
* lib/irb/ruby-lex.rb: Add handling for %i and %I quoting to irb
diff --git a/lib/erb.rb b/lib/erb.rb
index 3ca939c5c8..a73041f69a 100644
--- a/lib/erb.rb
+++ b/lib/erb.rb
@@ -740,6 +740,7 @@ class ERB
# % 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