From 75bc5455af8c3c3381066aac3d5fff42264cac6f Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Fri, 19 Aug 2011 03:09:35 +0200 Subject: Major rewrite of encoders to support IO output; fixed some minor scanner bugs; cleanups; dropped NitroXHTML scanner; improved tests --- lib/coderay/encoders/html/css.rb | 2 +- lib/coderay/encoders/html/output.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/coderay/encoders/html') diff --git a/lib/coderay/encoders/html/css.rb b/lib/coderay/encoders/html/css.rb index c459222..6de4b46 100644 --- a/lib/coderay/encoders/html/css.rb +++ b/lib/coderay/encoders/html/css.rb @@ -44,7 +44,7 @@ module Encoders ( [^\}]+ )? # $2 = style \s* \} \s* | - ( . ) # $3 = error + ( [^\n]+ ) # $3 = error /mx def parse stylesheet stylesheet.scan CSS_CLASS_PATTERN do |selectors, style, error| diff --git a/lib/coderay/encoders/html/output.rb b/lib/coderay/encoders/html/output.rb index 004351b..4f65878 100644 --- a/lib/coderay/encoders/html/output.rb +++ b/lib/coderay/encoders/html/output.rb @@ -55,7 +55,6 @@ module Encoders end def apply_title! title - # FIXME: This may change the output! self.sub!(/()(<\/title>)/) { $1 + title + $2 } self end -- cgit v1.2.1