From 4e13ac40b21a9cb272fc7475a9976e1e0c0d8b11 Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Sun, 14 Jul 2013 02:37:50 +0200 Subject: imagine escape_html does all we need --- lib/coderay/encoders/html.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay/encoders/html.rb') diff --git a/lib/coderay/encoders/html.rb b/lib/coderay/encoders/html.rb index 9489a91..486d561 100644 --- a/lib/coderay/encoders/html.rb +++ b/lib/coderay/encoders/html.rb @@ -207,7 +207,7 @@ module Encoders # if text.index(/[\0-\t\xB-\x1F]/) # # Escape ASCII control codes except \x9 == \t and \xA == \n. # text.tr!("\0-\x8\xB-\x1F", ' ') if text.index(/[\0-\x8\xB-\x1F]/) - text.gsub!("\t", @expand_tab) if text.index("\t") + # text.gsub!("\t", @expand_tab) if text.index("\t") # end text = break_lines(text, style) if @break_lines && (style || @opened.size > 0) && text.index("\n") -- cgit v1.2.1