From 1de8e57c915561e0c5ce7e98e8760c7e7ad0a38e Mon Sep 17 00:00:00 2001 From: murphy Date: Fri, 2 Apr 2010 00:14:27 +0000 Subject: HTML encoder is HTML 5 and CSS 3 compatible (closes #215). This also means it's incompatible to previous versions of HTML and CSS. Also, the output may not show correctly on IE. I officially drop support for Internet Explorer with no regrets. --- lib/coderay/encoders/html/numerization.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/coderay/encoders/html/numerization.rb') diff --git a/lib/coderay/encoders/html/numerization.rb b/lib/coderay/encoders/html/numerization.rb index 7058edd..5bfcc2d 100644 --- a/lib/coderay/encoders/html/numerization.rb +++ b/lib/coderay/encoders/html/numerization.rb @@ -77,11 +77,9 @@ module Encoders # FIXME Still not working perfect for Mr. Internet Exploder line_numbers = (start ... start + line_count).to_a.map(&bolding).join("\n") line_numbers << "\n" # also for Mr. MS Internet Exploder :-/ - line_numbers.gsub!(/\n/) { "\n" } line_numbers_table_tpl = TABLE.apply('LINE_NUMBERS', line_numbers) gsub!(/<\/div>\n/) { '' } - gsub!(/\n/) { "\n" } wrap_in! line_numbers_table_tpl @wrapped_in = :div -- cgit v1.2.1