**Describe the unexpected behaviour**
```
milovidov-desktop :) SET output_format_pretty_row_numbers = 1

SET output_format_pretty_row_numbers = 1

Query id: bb15ca27-5a3c-48ac-814a-a3cfea42deda

Ok.

0 rows in set. Elapsed: 0.000 sec. 

milovidov-desktop :) SELECT 1 UNION ALL SELECT 2

SELECT 1
UNION ALL
SELECT 2

Query id: d940f566-7188-4d17-83d6-8421975791a9

   ┌─1─┐
1. │ 2 │
   └───┘
   ┌─1─┐
1. │ 1 │
   └───┘

2 rows in set. Elapsed: 0.001 sec.
```
const Block & header, const Chunk & chunk,
    WidthsPerColumn & widths, Widths & max_padded_widths, Widths & name_widths)
{
    size_t num_rows = std::min(chunk.getNumRows(), format_settings.pretty.max_rows);
    
    row_number_width = static_cast<size_t>(std::floor(std::log10(num_rows))) + 3;
    size_t num_columns = chunk.getNumColumns();
    const auto & columns = chunk.getColumns();
    widths.resize(num_columns);
    max_padded_widths.resize_fill(num_columns);
    name_widths.resize(num_columns);
    
    String serialized_value;
    size_t prefix = 2; 
    for (size_t i = 0; i < num_columns; ++i)
    {
        const auto & elem = header.getByPosition(i);
        const auto & column = columns[i];
        widths[i].resize(num_rows);
        for (size_t j = 0; j < num_rows; ++j)
        {
            {
                WriteBufferFromString out_serialize(serialized_value);
                auto serialization = elem.type->getDefaultSerialization();
                serialization->serializeText(*column, j, out_serialize, format_settings);