mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-13 01:10:26 +08:00
Do not fill blanks to align if there is only one line.
This commit is contained in:
parent
f5313f92f1
commit
02bfa0898c
@ -177,14 +177,17 @@ struct formatter<spdlog::details::dump_info<T>>
|
|||||||
}
|
}
|
||||||
if (show_ascii)
|
if (show_ascii)
|
||||||
{
|
{
|
||||||
auto blank_num = size_per_line - (the_range.end() - start_of_line);
|
if (the_range.end() - the_range.begin() > size_per_line)
|
||||||
while (blank_num-- > 0)
|
|
||||||
{
|
{
|
||||||
*inserter++ = ' ';
|
auto blank_num = size_per_line - (the_range.end() - start_of_line);
|
||||||
*inserter++ = ' ';
|
while (blank_num-- > 0)
|
||||||
if (put_delimiters)
|
|
||||||
{
|
{
|
||||||
*inserter++ = ' ';
|
*inserter++ = ' ';
|
||||||
|
*inserter++ = ' ';
|
||||||
|
if (put_delimiters)
|
||||||
|
{
|
||||||
|
*inserter++ = ' ';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*inserter++ = ' ';
|
*inserter++ = ' ';
|
||||||
|
Loading…
Reference in New Issue
Block a user