Skip to content

Commit da39961

Browse files
committed
HTML envoder keeps \t with tab_width: false
Fixes #170
1 parent f1d1e5b commit da39961

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
@@ -180,7 +180,7 @@ def setup options
180180

181181
@break_lines = (options[:break_lines] == true)
182182

183-
@HTML_ESCAPE = HTML_ESCAPE.merge("\t" => ' ' * options[:tab_width])
183+
@HTML_ESCAPE = HTML_ESCAPE.merge("\t" => options[:tab_width] ? ' ' * options[:tab_width] : "\t")
184184

185185
@opened = []
186186
@last_opened = nil

0 commit comments

Comments
 (0)