diff --git a/src/blt/std/format.cpp b/src/blt/std/format.cpp index a257c14..300cfde 100644 --- a/src/blt/std/format.cpp +++ b/src/blt/std/format.cpp @@ -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) {