diff options
author | murphy <murphy@rubychan.de> | 2006-03-15 21:58:19 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2006-03-15 21:58:19 +0000 |
commit | fea5260ce014ee521955c5afc929f3cae71a4c73 (patch) | |
tree | ba5cab1cf24a5cf31e7202d212d78792012884a5 /lib/coderay/encoders | |
parent | 3b4a0d83ddd0eec0dc424798ad8ed3a53c5ba88c (diff) | |
download | coderay-fea5260ce014ee521955c5afc929f3cae71a4c73.tar.gz |
Ruby scanner errors fixed.
demo_dump and demo_encoder updated for new YAML version.
Fixes in output.rb and numerization.rb
Diffstat (limited to 'lib/coderay/encoders')
-rw-r--r-- | lib/coderay/encoders/html/numerization.rb | 4 | ||||
-rw-r--r-- | lib/coderay/encoders/html/output.rb | 2 |
2 files changed, 3 insertions, 3 deletions
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 '<span class="co">Code</span>'
# 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
|