Skip to content

Commit d1d78a9

Browse files
committed
hacky fix to avoid the middleman html tidying up, adding newlines after the divs and wrecking shit up
1 parent 87930b1 commit d1d78a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/coderay/encoders/html/numbering.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def self.number! output, mode = :table, options = {}
7272
line_number_text = bolding.call line_number
7373
indent = ' ' * (max_width - line_number.to_s.size) # TODO: Optimize (10^x)
7474
line_number += 1
75-
"<div class=\"line#{" odd" if line_number.even?}\"><span class=\"line-numbers\">#{indent}#{line_number_text}</span>#{line}</div>"
75+
"<span class=\"line#{" odd" if line_number.even?}\"><span class=\"line-numbers\">#{indent}#{line_number_text}</span>#{line}</span>"
7676
end
7777

7878
when :table

0 commit comments

Comments
 (0)