Skip to content

Multiline docstrings indented inconsistently on console #183

Closed
@pekkaklarck

Description

@pekkaklarck

If I have standard multiline docstring like

@task
def example():
    """Short doc.

    Some more text here.
    In two lines.
    """
    pass

and run invoke example, I get this output with inconsistent documentation indentation:

Usage: inv[oke] [--core-opts] example [other tasks here ...]

Docstring:
  Short doc.

      Some more text here.
      In two lines.

Options:
  none

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions