Skip to content

Docformatter not formatting multi-line format of docstring #265

Open
@JosePintos

Description

@JosePintos

I'm running the latest version of docformatter (as well as 1.7.3, 1.6.5, 1.3.1) with python 3.10.1.

Input:

def launch_rocket():
    """Launch
the
rocket. Go colonize space."""

expected:

def launch_rocket():
    """Launch the rocket.

    Go colonize space.
    """

actual output:

def launch_rocket():
    """Launch
    the
    rocket. Go colonize space.
    """

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: conventionRelates to docstring format conventionP: bugPEP 257 violation or existing functionality that doesn't work as documentedU: high

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions