Whole file
Textualize/rich
The author described this change as “Fix raw markup printed on prompt errors sometimes”. It counts as a record because the check below fails on the code as it stood at 4d6d631a3 and passes on 95fe8ff59, with nothing else changed between the two runs.
ProjectTextualize/rich
Fix saved2025-11-13
Sharing licenceMIT · LICENSE
Change size+1 −1
What the code was meant to do, written into the code itself as a save note
Fix raw markup printed on prompt errors sometimes
The change
| 262 | 262 | value (str): String entered by user. | |
| 263 | 263 | error (InvalidResponse): Exception instance the initiated the error. | |
| 264 | 264 | """ | |
| 265 | - | self.console.print(error) | |
| 265 | + | self.console.print(error, markup=True) | |
| 266 | 266 | ||
| 267 | 267 | def pre_prompt(self) -> None: | |
| 268 | 268 | """Hook to display something before the prompt.""" |
The check that tells the two apart
fail→pass·tests/test_prompt.py::test_prompt_confirm_markup
Check file tests/test_prompt.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 it4d6d631a3d2deddf8405522d4b8c976a6d35726c
Broken version dated2025-10-09
Modulerich.prompt
Units changedPromptBase
Fingerprint8408c0c8c46c15cb
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
- 2026-04-12TableDataElement
- 2026-02-01_cell_len
- 2026-01-24get_character_cell_size
- 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