Skip to content

Commit 4e13ac4

Browse files
committed
imagine escape_html does all we need
1 parent bb5cacf commit 4e13ac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/coderay/encoders/html.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def text_token text, kind
207207
# if text.index(/[\0-\t\xB-\x1F]/)
208208
# # Escape ASCII control codes except \x9 == \t and \xA == \n.
209209
# text.tr!("\0-\x8\xB-\x1F", ' ') if text.index(/[\0-\x8\xB-\x1F]/)
210-
text.gsub!("\t", @expand_tab) if text.index("\t")
210+
# text.gsub!("\t", @expand_tab) if text.index("\t")
211211
# end
212212

213213
text = break_lines(text, style) if @break_lines && (style || @opened.size > 0) && text.index("\n")

0 commit comments

Comments
 (0)