diff --git a/lib/rex/ui/text/table.rb b/lib/rex/ui/text/table.rb index 6fddae73ec..ee0ed24a50 100644 --- a/lib/rex/ui/text/table.rb +++ b/lib/rex/ui/text/table.rb @@ -94,7 +94,7 @@ class Table # Converts table contents to a string. # def to_s - str = '' + str = prefix.dup str << header_to_s || '' str << columns_to_s || '' str << hr_to_s || ''