diff options
Diffstat (limited to 'lib/coderay/encoders')
-rw-r--r-- | lib/coderay/encoders/_map.rb | 3 | ||||
-rw-r--r-- | lib/coderay/encoders/page.rb | 12 |
2 files changed, 7 insertions, 8 deletions
diff --git a/lib/coderay/encoders/_map.rb b/lib/coderay/encoders/_map.rb index b4b766a..c9a20cc 100644 --- a/lib/coderay/encoders/_map.rb +++ b/lib/coderay/encoders/_map.rb @@ -8,8 +8,7 @@ module Encoders :plain => :text, :plaintext => :text, :remove_comments => :comment_filter, - :stats => :statistic, - :tex => :latex + :stats => :statistic # No default because Tokens#nonsense would not raise NoMethodError. diff --git a/lib/coderay/encoders/page.rb b/lib/coderay/encoders/page.rb index 9f3538e..8db45cd 100644 --- a/lib/coderay/encoders/page.rb +++ b/lib/coderay/encoders/page.rb @@ -1,6 +1,6 @@ module CodeRay module Encoders - + load :html # Wraps the output into a HTML page, using CSS classes and @@ -8,17 +8,17 @@ module Encoders # # See Encoders::HTML for available options. class Page < HTML - + FILE_EXTENSION = 'html' - + register_for :page - + DEFAULT_OPTIONS = HTML::DEFAULT_OPTIONS.merge \ :css => :class, :wrap => :page, :line_numbers => :table - + end - + end end |