Fix unexpected delimiter at start of line in to_hex formatter (#2627)

This commit is contained in:
Li Z 2023-02-01 18:04:30 +08:00 committed by GitHub
parent 5a589438d2
commit 927cc29444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}