8000 imagine escape_html does all we need · rubychan/coderay@4e13ac4 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 1 addition & 1 deletion
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)
0