From 275febc7a310a4826adbe98458a5a0c4dc3eca12 Mon Sep 17 00:00:00 2001 From: murphy Date: Wed, 22 Sep 2010 01:12:24 +0000 Subject: Fixed line token classes when using hints. --- lib/coderay/encoders/html.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/coderay/encoders') diff --git a/lib/coderay/encoders/html.rb b/lib/coderay/encoders/html.rb index c59ee03..6e57855 100644 --- a/lib/coderay/encoders/html.rb +++ b/lib/coderay/encoders/html.rb @@ -271,7 +271,11 @@ 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('') + end else @out << '' end -- cgit v1.2.1