summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2008-09-24 01:29:34 +0000
committermurphy <murphy@rubychan.de>2008-09-24 01:29:34 +0000
commita1465d8bdf5637893c079d3a266b46b04e40d364 (patch)
tree8895992b46a6fc64f02616e62c21eb040c4c75fe /lib
parent1652c78d30300aba7d69fd3c9263ee422ea39e56 (diff)
downloadcoderay-a1465d8bdf5637893c079d3a266b46b04e40d364.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/coderay/encoders/html/css.rb2
1 files changed, 1 insertions, 1 deletions
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