lib/rouge/formatters/html_table.rb in rouge-3.2.1 vs lib/rouge/formatters/html_table.rb in rouge-3.3.0

- old
+ new

@@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true module Rouge module Formatters class HTMLTable < Formatter tag 'html_table' @@ -20,10 +21,10 @@ end def stream(tokens, &b) num_lines = 0 last_val = '' - formatted = '' + formatted = String.new('') tokens.each do |tok, val| last_val = val num_lines += val.scan(/\n/).size formatted << @inner.span(tok, val)