summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2014-05-17 21:16:38 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2014-05-17 21:19:38 +0200
commitda39961195a297293bfe274e4f60c607ad21eada (patch)
tree4a606e1f697f994cfa2fbb485508d99cc3a69021
parentf1d1e5bd49bc862be3872928e9b7652051bf2cef (diff)
downloadcoderay-da39961195a297293bfe274e4f60c607ad21eada.tar.gz
HTML envoder keeps \t with tab_width: false
Fixes #170
-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