Skip to content

Commit

Permalink
Fix unexpected delimiter at start of line in to_hex formatter (#2627)
Browse files Browse the repository at this point in the history
  • Loading branch information
starsunyzl authored Feb 1, 2023
1 parent 5a58943 commit 927cc29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/spdlog/fmt/bin_to_hex.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ struct formatter<spdlog::details::dump_info<T>, char>
continue;
}

if (put_delimiters)
if (put_delimiters && i != the_range.get_begin())
{
*inserter++ = delimiter;
}
Expand Down

0 comments on commit 927cc29

Please sign in to comment.