Skip to content

Commit 927cc29

Browse files
authored
Fix unexpected delimiter at start of line in to_hex formatter (#2627)
1 parent 5a58943 commit 927cc29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/spdlog/fmt/bin_to_hex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ struct formatter<spdlog::details::dump_info<T>, char>
196196
continue;
197197
}
198198

199-
if (put_delimiters)
199+
if (put_delimiters && i != the_range.get_begin())
200200
{
201201
*inserter++ = delimiter;
202202
}

0 commit comments

Comments
 (0)