diff options
Diffstat (limited to 'lib/coderay/encoders')
-rw-r--r-- | lib/coderay/encoders/html.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/coderay/encoders/html.rb b/lib/coderay/encoders/html.rb index 629950c..beb3703 100644 --- a/lib/coderay/encoders/html.rb +++ b/lib/coderay/encoders/html.rb @@ -26,7 +26,8 @@ module Encoders # == Options # # === :tab_width - # Convert \t characters to +n+ spaces (a number.) + # Convert \t characters to +n+ spaces (a number or false.) + # false will keep tab characters untouched. # # Default: 8 # @@ -165,7 +166,7 @@ module Encoders @break_lines = (options[:break_lines] == true) - @expand_tab = ' ' * options[:tab_width] + @expand_tab = options[:tab_width] ? ' ' * options[:tab_width] : "\t" @opened = [] @last_opened = nil |