From adf529922b92466daece3ae8b24c917b6c0a7681 Mon Sep 17 00:00:00 2001 From: starsunyzl Date: Tue, 31 Jan 2023 21:51:12 +0800 Subject: [PATCH] Fix unexpected delimiter at start of line in to_hex formatter --- include/spdlog/fmt/bin_to_hex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/fmt/bin_to_hex.h b/include/spdlog/fmt/bin_to_hex.h index 47fec05b..1cb51ce6 100644 --- a/include/spdlog/fmt/bin_to_hex.h +++ b/include/spdlog/fmt/bin_to_hex.h @@ -196,7 +196,7 @@ struct formatter, char> continue; } - if (put_delimiters) + if (put_delimiters && i != the_range.get_begin()) { *inserter++ = delimiter; }