From a1465d8bdf5637893c079d3a266b46b04e40d364 Mon Sep 17 00:00:00 2001 From: murphy Date: Wed, 24 Sep 2008 01:29:34 +0000 Subject: Optimized CSS styles, improved coderay_suite, new HTML test. * CSS styles are shortened more to optimize HTML output. * Added a longer example file for the HTML Scanner. * coderay_suite prints more accurate and sensible benchmarks. --- lib/coderay/encoders/html/css.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay') diff --git a/lib/coderay/encoders/html/css.rb b/lib/coderay/encoders/html/css.rb index 90d8cb1..e680f82 100644 --- a/lib/coderay/encoders/html/css.rb +++ b/lib/coderay/encoders/html/css.rb @@ -53,7 +53,7 @@ module Encoders classes = selector.scan(/[-\w]+/) cl = classes.pop @classes[cl] ||= Hash.new - @classes[cl][classes] = style.to_s.strip + @classes[cl][classes] = style.to_s.strip.delete(' ').chomp(';') end end end -- cgit v1.2.1