We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00eeb88 commit bb5cacfCopy full SHA for bb5cacf
lib/coderay/encoders/html.rb
@@ -204,11 +204,11 @@ def text_token text, kind
204
style = @span_for_kinds[@last_opened ? [kind, *@opened] : kind]
205
206
text = EscapeUtils.escape_html(text)
207
- if text.index(/[\0-\t\xB-\x1F]/)
208
- # Escape ASCII control codes except \x9 == \t and \xA == \n.
209
- 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]/)
210
text.gsub!("\t", @expand_tab) if text.index("\t")
211
- end
+ # end
212
213
text = break_lines(text, style) if @break_lines && (style || @opened.size > 0) && text.index("\n")
214
0 commit comments