mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 10:08:40 +00:00
fix for syntax measure
This commit is contained in:
parent
13dd9c2c2e
commit
fe1ed5399e
3 changed files with 6 additions and 1 deletions
|
@ -392,6 +392,9 @@ def test_syntax_measure():
|
|||
code = Syntax("Hello, World", "python", code_width=20, line_numbers=True)
|
||||
assert code.__rich_measure__(console, console.options) == Measurement(3, 24)
|
||||
|
||||
code = Syntax("", "python", code_width=20, line_numbers=True)
|
||||
assert code.__rich_measure__(console, console.options) == Measurement(3, 24)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
syntax = Panel.fit(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue