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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user