From 7c96846e16ae60d8797ef37d83cb6b0f0553ef2e Mon Sep 17 00:00:00 2001 From: murphy Date: Mon, 5 Dec 2005 17:59:17 +0000 Subject: Some fixes for cYcnus style (capital Y makes problems) Fixes in the coderay_rdoc_template. --- lib/coderay/encoders/html.rb | 2 +- lib/coderay/encoders/html/css.rb | 2 +- lib/coderay/helpers/plugin.rb | 4 ++-- lib/coderay/styles/cycnus.rb | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/coderay') diff --git a/lib/coderay/encoders/html.rb b/lib/coderay/encoders/html.rb index df4130e..e456356 100644 --- a/lib/coderay/encoders/html.rb +++ b/lib/coderay/encoders/html.rb @@ -71,7 +71,7 @@ module Encoders :level => :xhtml, :css => :class, - :style => :cYcnus, + :style => :cycnus, :wrap => :page, diff --git a/lib/coderay/encoders/html/css.rb b/lib/coderay/encoders/html/css.rb index 69d002a..ef564ce 100644 --- a/lib/coderay/encoders/html/css.rb +++ b/lib/coderay/encoders/html/css.rb @@ -3,7 +3,7 @@ module CodeRay module Encoders class HTML class CSS - DEFAULT_STYLESHEET_ID = :cYcnus + DEFAULT_STYLESHEET_ID = :cycnus attr :stylesheet diff --git a/lib/coderay/helpers/plugin.rb b/lib/coderay/helpers/plugin.rb index 37bdc4c..f88fe7f 100644 --- a/lib/coderay/helpers/plugin.rb +++ b/lib/coderay/helpers/plugin.rb @@ -206,7 +206,7 @@ protected File.join plugin_path, "#{plugin_id}.rb" end - # Converts +id+ to a downcase Symbol if it is a String, + # Converts +id+ to a Symbol if it is a String, # or returns +id+ if it already is a Symbol. # # Raises +ArgumentError+ for all other objects, or if the @@ -216,7 +216,7 @@ protected id elsif id.is_a? String if id[/\w+/] == id - id.downcase.to_sym + id.to_sym else raise ArgumentError, "Invalid id: '#{id}' given." end diff --git a/lib/coderay/styles/cycnus.rb b/lib/coderay/styles/cycnus.rb index 264b5fe..ec19fae 100644 --- a/lib/coderay/styles/cycnus.rb +++ b/lib/coderay/styles/cycnus.rb @@ -3,7 +3,7 @@ module CodeRay class CYcnus < Style - register_for :cYcnus + register_for :cycnus code_background = '#f8f8f8' numbers_background = '#def' -- cgit v1.2.1