Flowdock
trim_line2(line) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/erb.rb, line 350
      def trim_line2(line)
        head = nil
        line.split(TrimSplitRegexp).each do |token|
          next if token.empty?
          head = token unless head
          if token == "%>\n"
            yield('%>')
            if  is_erb_stag?(head)
              yield(:cr)
            else
              yield("\n")
            end
            break
          end
          yield(token)
        end
      end
Register or log in to add new notes.