# File lib/rouge/formatters/terminal256.rb, line 24 def stream(tokens, &b) tokens.each do |tok, val| escape = escape_sequence(tok) yield escape.style_string yield val.gsub("\n", "#{escape.reset_string}\n#{escape.style_string}") yield escape.reset_string end end