From 498df2b7654c210c8f47e2757efc33cd94689b57 Mon Sep 17 00:00:00 2001 From: murphy Date: Sat, 25 Jun 2011 18:23:07 +0000 Subject: coderay list subcommand and cleanups/fixes in Plugin helper (issue #45) --- lib/coderay/encoders/_map.rb | 3 +-- lib/coderay/encoders/page.rb | 12 ++++++------ 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'lib/coderay/encoders') 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 -- cgit v1.2.1