Skip to content

Commit

Permalink
Fix table2d to have single dividers
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Chane <[email protected]>
  • Loading branch information
rchane committed Oct 29, 2024
1 parent db98799 commit e9a6450
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/runtime_src/core/tools/common/Table2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void
Table2D::appendToOutput(std::string& output, const std::string& prefix, const std::string& suffix, const ColumnData& column, const std::string& data) const
{
// Format for table data
boost::format fmt("%s%s%s%s%s");
boost::format fmt("%s%s%s%s%s|");
size_t left_blanks = 0;
size_t right_blanks = 0;
getBlankSizes(column, data.size(), left_blanks, right_blanks);
Expand All @@ -57,7 +57,9 @@ Table2D::toString(const std::string& prefix) const

// The first column must align with the user desires
// All other columns should only use the previous lines space suffix
const std::string column_prefix = (col == 0) ? prefix : "";
std::string column_prefix = "";
if (col == 0)
column_prefix = prefix + '|';

// For the first row add the headers
const auto space_suffix = std::string(m_inter_entry_padding, ' ');
Expand Down

0 comments on commit e9a6450

Please sign in to comment.