8000 #101 Inconsistent tabs on Code view. · greasyfork-org/greasyfork@e483752 · GitHub
[go: up one dir, main page]

Skip to content

Commit e483752

Browse files
committed
#101 Inconsistent tabs on Code view.
1 parent ad0964f commit e483752

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

config/initializers/coderay.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Don't replace tabs
2+
CodeRay::Encoders::HTML.module_eval do
3+
alias_method :original_text_token, :text_token
4+
def text_token text, kind
5+
@HTML_ESCAPE["\t"] = "\t"
6+
original_text_token(text, kind)
7+
end
8+
end

0 commit comments

Comments
 (0)
0