lib/rouge/formatters/null.rb in rouge-1.7.2 vs lib/rouge/formatters/null.rb in rouge-1.7.3
- old
+ new
@@ -8,10 +8,12 @@
def initialize(*)
end
def stream(tokens, &b)
- tokens.to_a
+ tokens.each do |tok, val|
+ yield "#{tok} #{val.inspect}\n"
+ end
end
end
end
end