mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
* log * tests * snapshot tests * change to richlog * keep raw lines * disable highlighting by default * simplify * superfluous test * optimization * update cell length * add refresh * write method * version bump * doc fix link * makes lines private * docstring * relax dev dependancy * remove superfluous code [skip ci] * added FAQ [skipci] * fix code in faq [skipci] * fix typo * max lines fix
12 lines
344 B
Python
12 lines
344 B
Python
from rich.text import Text
|
|
|
|
from textual.widgets import RichLog
|
|
|
|
|
|
def test_make_renderable_expand_tabs():
|
|
# Regression test for https://github.com/Textualize/textual/issues/3007
|
|
text_log = RichLog()
|
|
renderable = text_log._make_renderable("\tfoo")
|
|
assert isinstance(renderable, Text)
|
|
assert renderable.plain == " foo"
|