Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 045bd8c

Browse files
author
Tim Robertson
committed
bugfix
1 parent 2b618e9 commit 045bd8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/coderay/encoders/html/numbering.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ def self.number! output, mode = :table, options = {}
9191
if options[:wrap_lines]
9292
line_number = start
9393
output.gsub!(/^.*$\n?/) do |line|
94-
"<div class='line n#{line_number}'>#{line}</div>"
94+
wrapped_line = "<div class='line n#{line_number}'>#{line}</div>"
9595
line_number += 1
96+
wrapped_line
9697
end
9798
end
9899

0 commit comments

Comments
 (0)