Skip to content

Extra blank lines in nested lists with ANSI styling #376

@vipulgupta2048

Description

@vipulgupta2048

Just found of the active bug #371
Adding a small bug that the open PR can also fix.
When nested list items contain styled text, extra blank lines appear between items.

Cause: fixNestedLists() regex uses \S which matches the m in ANSI reset codes (\u001b[0m), inserting unintended newlines.

Happy to make a PR, for agents and humans alike

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions