Add plus to the top seperator in the table formatter
parent
0aab8d789c
commit
8a1d8dbe04
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue