summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay/encoders')
-rw-r--r--lib/coderay/encoders/html.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/coderay/encoders/html.rb b/lib/coderay/encoders/html.rb
index 5c90453..c59ee03 100644
--- a/lib/coderay/encoders/html.rb
+++ b/lib/coderay/encoders/html.rb
@@ -271,9 +271,9 @@ module Encoders
# whole lines to be highlighted, eg. a deleted line in a diff
def begin_line kind
if style = @css_style[@last_opened ? [kind, *@opened] : kind]
- @out << style.sub('<span', '<div')
+ @out << style.sub('<span class="', '<span class="line ')
else
- @out << '<div>'
+ @out << '<span class="line">'
end
@opened << kind
@last_opened = kind if @options[:css] == :style
@@ -285,7 +285,7 @@ module Encoders
'that is not open. Open are: %p.' % [kind, @opened[1..-1]]
end
if @opened.pop
- @out << '</div'
+ @out << '</span>'
@last_opened = @opened.last if @last_opened
end
end