Skip to content

[BUG] Syntax class does not display all content #1050

@abotsis

Description

@abotsis

Describe the bug

When nesting a Syntax class (with line_numbers and word_wrap enabled) inside a Panel inside a Layout, only the first line is displayed.

To Reproduce

print(Layout(Panel(Syntax('import stuff\nwhile True:\n print("hello!!!!")\n','python',line_numbers=True, word_wrap=True))))

Platform
Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions