fix double header line bug introduced by my last commit

git-svn-id: file:///home/svn/framework3/trunk@6321 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
James Lee
2009-03-08 19:55:47 +00:00
parent 760d837423
commit 491fb6b683
+2 -2
View File
@@ -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)