if width == max_width need padding

This commit is contained in:
Volodya 2024-05-03 23:14:54 +00:00
parent 081e6f7af1
commit 300f353cd1

View File

@ -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)