diff options
author | murphy <murphy@rubychan.de> | 2008-09-24 01:29:34 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2008-09-24 01:29:34 +0000 |
commit | a1465d8bdf5637893c079d3a266b46b04e40d364 (patch) | |
tree | 8895992b46a6fc64f02616e62c21eb040c4c75fe /lib/coderay | |
parent | 1652c78d30300aba7d69fd3c9263ee422ea39e56 (diff) | |
download | coderay-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/coderay')
-rw-r--r-- | lib/coderay/encoders/html/css.rb | 2 |
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 |