Skip to content

HelpFormatter.write_text() is not using all the available line width #1871

Description

@janluke

HelpFormatter.write_text() uses the function wrap_text(text, width, initial_indent, ...) internally. This function expects width to be the line width including the eventual indentation. HelpFormatter.write_text() gets this wrong and passes self.width - self.current_indent instead of just self.width.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions