From 3ecc8116cc06289724f9a2ccf734e99d843abc79 Mon Sep 17 00:00:00 2001 From: murphy Date: Tue, 24 Apr 2007 12:26:18 +0000 Subject: Benchmark, comparison: replaced SilverCity with pygments A bit of code and documentation cleanup HTML encoder: fixed css class output for NO_HIGHLIGHT tokens when :info is set. Fixed Text encoder. --- lib/coderay/encoders/html.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/coderay/encoders/html.rb') diff --git a/lib/coderay/encoders/html.rb b/lib/coderay/encoders/html.rb index 32e35f8..0c66f68 100644 --- a/lib/coderay/encoders/html.rb +++ b/lib/coderay/encoders/html.rb @@ -167,7 +167,11 @@ module Encoders else '' end - h[k.dup] = '' % [title, c] + if c == :NO_HIGHLIGHT + h[k.dup] = '' % [title] + else + h[k.dup] = '' % [title, c] + end end end -- cgit v1.2.1