Skip to content

Commit ee30738

Browse files
committed
rename local variable
1 parent 5cd7497 commit ee30738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/coderay/encoders/html.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ def check_group_nesting name, kind
310310

311311
def break_lines text, style
312312
reopen = ''
313-
@opened.each_with_index do |k, index|
314-
reopen << (@span_for_kinds[index > 0 ? [k, *@opened[0...index]] : k] || '<span>')
313+
@opened.each_with_index do |kind, index|
314+
reopen << (@span_for_kinds[index > 0 ? [kind, *@opened[0...index]] : kind] || '<span>')
315315
end
316316
text.gsub("\n", "#{'</span>' * @opened.size}#{'</span>' if style}\n#{reopen}#{style}")
317317
end

0 commit comments

Comments
 (0)