Skip to content

Option to adjust default text wrap length #23

@kinghuang

Description

@kinghuang

The wrap function takes a wrap_max argument that controls the maximum line width. When I'm using the typical functions for printing formatted messages like good, fail, warn, and info, they are calling wrap internally, and there's no easy way to adjust the line width. The Printer class does have a line_max argument, but it's only used for dividers.

Can there be a way to adjust the default wrap_max value, either by configuring a Printer instance or via an environment variable? I'm using wasabi in my spaCy related projects, and the short 80 character output has been really limiting some of my logging output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions