mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
if width == max_width need padding
This commit is contained in:
parent
081e6f7af1
commit
300f353cd1
@ -453,6 +453,8 @@ void PrettyBlockOutputFormat::writeValueWithPadding(
|
||||
value_width = format_settings.pretty.max_value_width;
|
||||
has_break_line = false;
|
||||
}
|
||||
else if (!has_break_line)
|
||||
value += ' ';
|
||||
|
||||
auto write_padding = [&]()
|
||||
{
|
||||
@ -478,8 +480,6 @@ void PrettyBlockOutputFormat::writeValueWithPadding(
|
||||
|
||||
if (has_break_line)
|
||||
writeString("…", out);
|
||||
else if (value_width != format_settings.pretty.max_value_width)
|
||||
writeChar(' ', out);
|
||||
}
|
||||
|
||||
void PrettyBlockOutputFormat::writeTransferredRow(const Widths & max_widths, const Block & header, std::vector<String> & transferred_row, size_t cut_to_width, bool space_block)
|
||||
|
Loading…
Reference in New Issue
Block a user