summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-07-14 02:27:53 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-07-14 02:27:53 +0200
commitbb5cacf51d3c7a9bcd41c78571c12c5ba281c33f (patch)
tree6b8f583598329f4e612a736c9d083834273e060e
parent00eeb882c592fc2ee883630357dc082e5c7b2ad7 (diff)
downloadcoderay-bb5cacf51d3c7a9bcd41c78571c12c5ba281c33f.tar.gz
remove control codes escaping?
-rw-r--r--lib/coderay/encoders/html.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/coderay/encoders/html.rb b/lib/coderay/encoders/html.rb
index ad26aa2..9489a91 100644
--- a/lib/coderay/encoders/html.rb
+++ b/lib/coderay/encoders/html.rb
@@ -204,11 +204,11 @@ module Encoders
style = @span_for_kinds[@last_opened ? [kind, *@opened] : kind]
text = EscapeUtils.escape_html(text)
- 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]/)
+ # 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")
- end
+ # end
text = break_lines(text, style) if @break_lines && (style || @opened.size > 0) && text.index("\n")