Whole file

Textualize/rich

The author described this change as fix(table): highlight columns added by add_row. It counts as a record because the check below fails on the code as it stood at 5ba9cb56e and passes on 16b383040, with nothing else changed between the two runs.

Fix saved2024-10-03
Sharing licenceMIT · LICENSE
Change size+1 1

What the code was meant to do, written into the code itself as a save note

fix(table): highlight columns added by add_row

The change

451451 ]
452452 for index, renderable in enumerate(cell_renderables):
453453 if index == len(columns):
454- column = Column(_index=index)
454+ column = Column(_index=index, highlight=self.highlight)
455455 for _ in self.rows:
456456 add_cell(column, Text(""))
457457 self.columns.append(column)

The check that tells the two apart

failpass·tests/test_table.py::test_columns_highlight_added_by_add_row

Check file tests/test_table.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before it5ba9cb56e68dcdf2db50c214d8f1412c8a50761b
Broken version dated2024-10-01
Modulerich.table
Units changedTable
Fingerprint83142c0b0ea26cd8
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in Textualize/rich