From fea5260ce014ee521955c5afc929f3cae71a4c73 Mon Sep 17 00:00:00 2001 From: murphy Date: Wed, 15 Mar 2006 21:58:19 +0000 Subject: Ruby scanner errors fixed. demo_dump and demo_encoder updated for new YAML version. Fixes in output.rb and numerization.rb --- lib/coderay/encoders/html/numerization.rb | 4 ++-- lib/coderay/encoders/html/output.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/coderay/encoders') diff --git a/lib/coderay/encoders/html/numerization.rb b/lib/coderay/encoders/html/numerization.rb index f51b5d3..edce9eb 100644 --- a/lib/coderay/encoders/html/numerization.rb +++ b/lib/coderay/encoders/html/numerization.rb @@ -12,9 +12,9 @@ module CodeRay NUMERIZABLE_WRAPPINGS = { :table => [:div, :page], :inline => :all, - :list => [:div, :page], - nil => :all + :list => [:div, :page] } + NUMERIZABLE_WRAPPINGS.default = :all def numerize! mode = :table, options = {} return self unless mode diff --git a/lib/coderay/encoders/html/output.rb b/lib/coderay/encoders/html/output.rb index 36018a7..8096dc8 100644 --- a/lib/coderay/encoders/html/output.rb +++ b/lib/coderay/encoders/html/output.rb @@ -25,7 +25,7 @@ module CodeRay # # a = Output.new 'Code' # a.wrap! :page - def new string, css, element = nil + def new string, css = CSS.new, element = nil output = string.clone.extend self output.wrapped_in = element output.css = css -- cgit v1.2.1