summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2015-03-21 03:45:26 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2015-03-21 03:45:26 +0100
commit41c211ddb452bc8aa643e3915974b84cd82234be (patch)
tree195b3a540c8a35b9a1ca976bae63047804da0bc8 /lib/coderay/encoders
parent8dc6d8b6ac7d02ef7067a36c082a114c83606c9e (diff)
parente5624a07e95cc7a3c704a4d08cddea582adc7f31 (diff)
downloadcoderay-41c211ddb452bc8aa643e3915974b84cd82234be.tar.gz
Merge branch 'master' into dsl
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 d2ebb5a..c7c0c2d 100644
--- a/lib/coderay/encoders/html.rb
+++ b/lib/coderay/encoders/html.rb
@@ -180,7 +180,7 @@ module Encoders
@break_lines = (options[:break_lines] == true)
- @HTML_ESCAPE = HTML_ESCAPE.merge("\t" => ' ' * options[:tab_width])
+ @HTML_ESCAPE = HTML_ESCAPE.merge("\t" => options[:tab_width] ? ' ' * options[:tab_width] : "\t")
@opened = []
@last_opened = nil