From 08f7ea9c56fdb0b5a0f5ce69aa50794aab8fbee4 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Sun, 9 Aug 2020 18:38:21 +0900 Subject: [PATCH] refactor: remove extraneous whitespaces in errmsg --- toml/source_location.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toml/source_location.hpp b/toml/source_location.hpp index 470883f..a386710 100644 --- a/toml/source_location.hpp +++ b/toml/source_location.hpp @@ -185,7 +185,7 @@ inline std::string format_underline(const std::string& message, retval << color::bold << color::blue << " --> " << color::reset << loc_com.front().first.file_name() << '\n'; retval << make_string(line_num_width + 1, ' ') - << color::bold << color::blue << " | " << color::reset << '\n'; + << color::bold << color::blue << " |\n" << color::reset; // 1 | key value // | ^--- missing = format_one_location(retval, loc_com.front().first, loc_com.front().second); @@ -217,7 +217,7 @@ inline std::string format_underline(const std::string& message, { retval << '\n'; retval << make_string(line_num_width + 1, ' '); - retval << color::bold << color::blue << " | " << color::reset; + retval << color::bold << color::blue << " |" << color::reset; for(const auto& help : helps) { retval << color::bold << "\nHint: " << color::reset;