From 8a1d8dbe044abf5ca82c6a7f4895bfd9b4fd8059 Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 14 Feb 2023 22:35:40 -0500 Subject: [PATCH] Add plus to the top seperator in the table formatter --- src/blt/std/format.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) {