Add plus to the top seperator in the table formatter

v1
Brett 2023-02-14 22:35:40 -05:00
parent 0aab8d789c
commit 8a1d8dbe04
1 changed files with 6 additions and 2 deletions

View File

@ -80,12 +80,16 @@ std::string blt::string::TableFormatter::generateTopSeparator(size_t size) {
halfWidthLeftSeparator.reserve(sizeNameCeil);
halfWidthRightSeparator.reserve(sizeNameFloor);
for (int i = 0; i < sizeNameFloor; i++)
halfWidthLeftSeparator += "+";
for (int i = 0; i < sizeNameFloor - 1; i++)
halfWidthLeftSeparator += "-";
for (int i = 0; i < sizeNameCeil; i++)
for (int i = 0; i < sizeNameCeil - 1; i++)
halfWidthRightSeparator += "-";
halfWidthRightSeparator += "+";
std::string separator;
separator += halfWidthLeftSeparator;
if (sizeOfName != 0) {