diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2017-11-02 23:16:14 +0100 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2017-11-02 23:16:14 +0100 |
commit | 1f2367aead6b76f694041cb2688652ed70ae215a (patch) | |
tree | 2753212c91c93d61afa2d12aac85d5b3a873e52b /lib/coderay/encoders/html.rb | |
parent | 1bdaeef6c43436e4984f5b96cb17618f82832225 (diff) | |
parent | e15cf96405177153e1418496a7a8e85beaa679fb (diff) | |
download | coderay-1f2367aead6b76f694041cb2688652ed70ae215a.tar.gz |
Merge branch 'master' into dsl
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 0365022..5d55b00 100644 --- a/lib/coderay/encoders/html.rb +++ b/lib/coderay/encoders/html.rb @@ -161,7 +161,7 @@ module Encoders if options[:wrap] || options[:line_numbers] @real_out = @out - @out = '' + @out = ''.dup end @break_lines = (options[:break_lines] == true) @@ -297,7 +297,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 |