One function
TableDataElement in Textualize/rich
The author described this change as “fix inline code in table cells”. It counts as a record because the check below fails on the code as it stood at 19c67b9a3 and passes on 7ef2d05ca, with nothing else changed between the two runs.
ProjectTextualize/rich
Fix saved2026-04-12
Sharing licenceMIT · LICENSE
Change size+4 −3
What the code was meant to do, written into the code itself as a docstring
MarkdownElement corresponding to `td_open` and `td_close` and `th_open` and `th_close`.
The change
| 24 | 24 | self.justify = justify | |
| 25 | 25 | ||
| 26 | 26 | def on_text(self, context: MarkdownContext, text: TextType) -> None: | |
| 27 | - | text = Text(text) if isinstance(text, str) else text | |
| 28 | - | text.stylize(context.current_style) | |
| 29 | - | self.content.append_text(text) | |
| 27 | + | if isinstance(text, str): | |
| 28 | + | self.content.append(text, context.current_style) | |
| 29 | + | else: | |
| 30 | + | self.content.append_text(text) |
The check that tells the two apart
fail→pass·tests/test_markdown.py::test_inline_code_in_table_cells
Check file tests/test_markdown.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 it19c67b9a3479841e9133bea94607c89ee931d3fc
Broken version dated2026-04-12
Modulerich.markdown
Units changedTableDataElement
Fingerprint468917a9246d3cc7
Checked2026-08-17 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
- 2026-02-01_cell_len
- 2026-01-24get_character_cell_size
- 2025-11-13Fix raw markup printed on prompt errors sometimes
- 2025-05-01fix(panel): fix title missing panel background
- 2024-10-03fix(table): highlight columns added by add_row
- 2023-01-06fix issue splitting segments