From 491fb6b6837eb72f07e8c19d4e34c4775981e44b Mon Sep 17 00:00:00 2001 From: James Lee Date: Sun, 8 Mar 2009 19:55:47 +0000 Subject: [PATCH] fix double header line bug introduced by my last commit git-svn-id: file:///home/svn/framework3/trunk@6321 4d416f70-5f16-0410-b530-b9f4589650da --- lib/rex/ui/text/table.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)