summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders/html.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2007-04-24 12:26:18 +0000
committermurphy <murphy@rubychan.de>2007-04-24 12:26:18 +0000
commit3ecc8116cc06289724f9a2ccf734e99d843abc79 (patch)
treef4f20fe32327d5127a2778b5cd19baea644c3fd8 /lib/coderay/encoders/html.rb
parent47ba0455640b4a6a0ae90961c176c9ea42afa2ea (diff)
downloadcoderay-3ecc8116cc06289724f9a2ccf734e99d843abc79.tar.gz
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.
Diffstat (limited to 'lib/coderay/encoders/html.rb')
-rw-r--r--lib/coderay/encoders/html.rb6
1 files changed, 5 insertions, 1 deletions
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] = '<span%s class="%s">' % [title, c]
+ if c == :NO_HIGHLIGHT
+ h[k.dup] = '<span%s>' % [title]
+ else
+ h[k.dup] = '<span%s class="%s">' % [title, c]
+ end
end
end