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/text.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/coderay/encoders/text.rb') diff --git a/lib/coderay/encoders/text.rb b/lib/coderay/encoders/text.rb index 7493280..14282ac 100644 --- a/lib/coderay/encoders/text.rb +++ b/lib/coderay/encoders/text.rb @@ -14,12 +14,12 @@ module Encoders protected def setup options - super + @out = '' @sep = options[:separator] end - def text_token text, kind - text + @sep + def token text, kind + @out << text + @sep if text.is_a? ::String end def finish options -- cgit v1.2.1