diff options
Diffstat (limited to 'lib/erb.rb')
-rw-r--r-- | lib/erb.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/erb.rb b/lib/erb.rb index 58f98ca00f..fade2c72ba 100644 --- a/lib/erb.rb +++ b/lib/erb.rb @@ -329,17 +329,15 @@ class ERB end def scan_line(line) - line.split(SplitRegexp).each do |tokens| - tokens.each do |token| - next if token.empty? - yield(token) - end + line.split(SplitRegexp).each do |token| + next if token.empty? + yield(token) end end def trim_line1(line) line.split(TrimSplitRegexp).each do |token| - next if token.empty? + next if token.empty? if token == "%>\n" yield('%>') yield(:cr) |