diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2014-05-17 21:16:38 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2014-05-17 21:19:38 +0200 |
commit | da39961195a297293bfe274e4f60c607ad21eada (patch) | |
tree | 4a606e1f697f994cfa2fbb485508d99cc3a69021 /lib | |
parent | f1d1e5bd49bc862be3872928e9b7652051bf2cef (diff) | |
download | coderay-da39961195a297293bfe274e4f60c607ad21eada.tar.gz |
HTML envoder keeps \t with tab_width: false
Fixes #170
Diffstat (limited to 'lib')
-rw-r--r-- | lib/coderay/encoders/html.rb | 2 |
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 |