summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay/encoders')
-rw-r--r--lib/coderay/encoders/html.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/encoders/html.rb b/lib/coderay/encoders/html.rb
index 7e83eb8..a2c274f 100644
--- a/lib/coderay/encoders/html.rb
+++ b/lib/coderay/encoders/html.rb
@@ -280,7 +280,7 @@ module Encoders
if options[:tab_width] == DEFAULT_OPTIONS[:tab_width]
HTML_ESCAPE
else
- HTML_ESCAPE.merge("\t" => ' ' * options[:tab_width])
+ HTML_ESCAPE.merge("\t" => options[:tab_width] ? ' ' * options[:tab_width] : "\t")
end
Hash.new do |cache, text|