diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2013-07-21 17:04:09 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2013-07-21 17:04:09 +0200 |
commit | 5cd749771379b9832ab1b37936bd98fb7cc80a34 (patch) | |
tree | ad851c8b2b18ab33bcd857552f3da7504ee01aea /lib/coderay/encoders | |
parent | 60afd6857c8d0f1c3f9f2d6ca45f01b216d6b4b5 (diff) | |
download | coderay-5cd749771379b9832ab1b37936bd98fb7cc80a34.tar.gz |
don't dup @span_for_kinds hash keys
Diffstat (limited to 'lib/coderay/encoders')
-rw-r--r-- | lib/coderay/encoders/html.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/encoders/html.rb b/lib/coderay/encoders/html.rb index ee2d91a..ad5fafc 100644 --- a/lib/coderay/encoders/html.rb +++ b/lib/coderay/encoders/html.rb @@ -286,7 +286,7 @@ module Encoders def make_span_for_kinds method, hint # FIXME: cache attack Hash.new do |h, kinds| - h[kinds.is_a?(Symbol) ? kinds : kinds.dup] = begin + h[kinds] = begin css_class = css_class_for_kinds(kinds) title = HTML.token_path_to_hint hint, kinds if hint |