diff --git a/lib/rex/ui/text/table.rb b/lib/rex/ui/text/table.rb index 1b7ec9c73e..35d3c6e109 100644 --- a/lib/rex/ui/text/table.rb +++ b/lib/rex/ui/text/table.rb @@ -87,7 +87,7 @@ class Table # Converts table contents to a string. # def to_s - str = prefix + str = prefix str << header_to_s || '' str << columns_to_s || '' str << hr_to_s || '' @@ -182,7 +182,7 @@ protected # def columns_to_s # :nodoc: nameline = ' ' * indent - barline = nameline + barline = nameline.dup columns.each_with_index { |col,idx| nameline << col + pad(' ', col, idx)