diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2013-07-21 17:04:23 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2013-07-21 17:04:23 +0200 |
commit | ee30738b0b0615715321aa4f1ed8c7e4025cb411 (patch) | |
tree | dcf60dc6b1e7f3a691770c5ab8345b3a90b583ba /lib/coderay/encoders | |
parent | 5cd749771379b9832ab1b37936bd98fb7cc80a34 (diff) | |
download | coderay-ee30738b0b0615715321aa4f1ed8c7e4025cb411.tar.gz |
rename local variable
Diffstat (limited to 'lib/coderay/encoders')
-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 ad5fafc..81a6ffa 100644 --- a/lib/coderay/encoders/html.rb +++ b/lib/coderay/encoders/html.rb @@ -310,8 +310,8 @@ module Encoders def break_lines text, style reopen = '' - @opened.each_with_index do |k, index| - reopen << (@span_for_kinds[index > 0 ? [k, *@opened[0...index]] : k] || '<span>') + @opened.each_with_index do |kind, index| + reopen << (@span_for_kinds[index > 0 ? [kind, *@opened[0...index]] : kind] || '<span>') end text.gsub("\n", "#{'</span>' * @opened.size}#{'</span>' if style}\n#{reopen}#{style}") end |