diff options
Diffstat (limited to 'lib/coderay/encoders')
-rw-r--r-- | lib/coderay/encoders/html.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/encoders/html.rb b/lib/coderay/encoders/html.rb index 0a55a02..f14c1cc 100644 --- a/lib/coderay/encoders/html.rb +++ b/lib/coderay/encoders/html.rb @@ -191,7 +191,7 @@ module Encoders @css_style = Hash.new do |h, k| c = Tokens::AbbreviationForKind[k.first] h[k.dup] = - if c != :NO_HIGHLIGHT or hint + if c != :NO_HIGHLIGHT or (hint && k.first != :space) if hint title = HTML.token_path_to_hint hint, k end @@ -207,7 +207,7 @@ module Encoders @css_style = Hash.new do |h, k| classes = k.map { |c| Tokens::AbbreviationForKind[c] } h[k.dup] = - if classes.first != :NO_HIGHLIGHT or hint + if classes.first != :NO_HIGHLIGHT or (hint && k.first != :space) if hint title = HTML.token_path_to_hint hint, k end |