diff options
author | Pat Allan <pat@freelancing-gods.com> | 2017-06-28 10:36:18 +1000 |
---|---|---|
committer | Pat Allan <pat@freelancing-gods.com> | 2017-06-28 10:36:18 +1000 |
commit | 761234f380b3e42c283e82d784826bae280f9075 (patch) | |
tree | 685fea8bd74cdc7ce86e7dd285fd35ef01bb7d73 /lib/coderay/encoders/html.rb | |
parent | 368a28e26944edb5e6a59356d50683400695ab65 (diff) | |
download | coderay-761234f380b3e42c283e82d784826bae280f9075.tar.gz |
Get tests running with frozen string literals.
Diffstat (limited to 'lib/coderay/encoders/html.rb')
-rw-r--r-- | lib/coderay/encoders/html.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/encoders/html.rb b/lib/coderay/encoders/html.rb index 942b9c8..1b33e92 100644 --- a/lib/coderay/encoders/html.rb +++ b/lib/coderay/encoders/html.rb @@ -176,7 +176,7 @@ module Encoders if options[:wrap] || options[:line_numbers] @real_out = @out - @out = '' + @out = ''.dup end @break_lines = (options[:break_lines] == true) @@ -314,7 +314,7 @@ module Encoders end def break_lines text, style - reopen = '' + reopen = ''.dup @opened.each_with_index do |kind, index| reopen << (@span_for_kinds[index > 0 ? [kind, *@opened[0...index]] : kind] || '<span>') end |