summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-07-21 17:04:23 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-07-21 17:04:23 +0200
commitee30738b0b0615715321aa4f1ed8c7e4025cb411 (patch)
treedcf60dc6b1e7f3a691770c5ab8345b3a90b583ba
parent5cd749771379b9832ab1b37936bd98fb7cc80a34 (diff)
downloadcoderay-ee30738b0b0615715321aa4f1ed8c7e4025cb411.tar.gz
rename local variable
-rw-r--r--lib/coderay/encoders/html.rb4
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