# -*- coding: utf-8 -*- # module Rouge module Formatters class HTMLLinewise < Formatter def initialize(formatter, opts={}) @formatter = formatter @class_format = opts.fetch(:class, 'line-%i') end def stream(tokens, &b) token_lines(tokens) do |line| yield "