diff --git a/lib/slither/column.rb b/lib/slither/column.rb index 0e5d013..5d38d1d 100644 --- a/lib/slither/column.rb +++ b/lib/slither/column.rb @@ -18,6 +18,7 @@ def initialize(name, length, options = {}) @truncate = options[:truncate] || false # Only used with floats, this determines the decimal places @precision = options[:precision] + end def unpacker @@ -65,7 +66,7 @@ def sizer end def apply_default(value) - value.to_s.strip.empty? ? @default_value : value + value.to_s.empty? ? @default_value : value end # Manually apply padding. sprintf only allows padding on numeric fields.