From c1ec72d1ea5a4f150802fa3b8b42f850d0479882 Mon Sep 17 00:00:00 2001 From: murphy Date: Wed, 22 Sep 2010 00:11:31 +0000 Subject: Fix invalid HTML markup for line tokens (use span + CSS instead of div). --- lib/coderay/encoders/html.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/coderay/encoders') 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('' + @out << '' 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 << '' @last_opened = @opened.last if @last_opened end end -- cgit v1.2.1