Commit 02bfa089 authored by ngugcx's avatar ngugcx

Do not fill blanks to align if there is only one line.

parent f5313f92
......@@ -177,14 +177,17 @@ struct formatter<spdlog::details::dump_info<T>>
}
if (show_ascii)
{
auto blank_num = size_per_line - (the_range.end() - start_of_line);
while (blank_num-- > 0)
if (the_range.end() - the_range.begin() > size_per_line)
{
*inserter++ = ' ';
*inserter++ = ' ';
if (put_delimiters)
auto blank_num = size_per_line - (the_range.end() - start_of_line);
while (blank_num-- > 0)
{
*inserter++ = ' ';
*inserter++ = ' ';
if (put_delimiters)
{
*inserter++ = ' ';
}
}
}
*inserter++ = ' ';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment