diff options
-rw-r--r-- | lib/coderay/encoders/html/css.rb | 3 | ||||
-rw-r--r-- | lib/coderay/encoders/html/output.rb | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/coderay/encoders/html/css.rb b/lib/coderay/encoders/html/css.rb index e78d062..e06c486 100644 --- a/lib/coderay/encoders/html/css.rb +++ b/lib/coderay/encoders/html/css.rb @@ -11,13 +11,12 @@ module Encoders @style ||= CodeRay::Styles[@style_name] end - def css + def stylesheet @css ||= [ style::CSS_MAIN_STYLES, style::TOKEN_COLORS.gsub(/^(?!$)/, '.CodeRay ') ].join("\n") end - alias stylesheet css def get_style_for_css_classes css_classes cl = styles[css_classes.first] diff --git a/lib/coderay/encoders/html/output.rb b/lib/coderay/encoders/html/output.rb index d3b676c..de6f6ea 100644 --- a/lib/coderay/encoders/html/output.rb +++ b/lib/coderay/encoders/html/output.rb @@ -24,7 +24,7 @@ module Encoders end def make_stylesheet css, in_tag = false # :nodoc: - sheet = css.css + sheet = css.stylesheet sheet = <<-'CSS' if in_tag <style type="text/css"> #{sheet} |