Skip to content

Wrapped text gets repeated in some cases #2

@fvisin

Description

@fvisin

I noticed that when docstrings get wrapped the text is repeated twice on the new line. Weirdly enough, this happens only when the number of letters of the word that is being wrapped is 3 or 4, and the word begins with a letter.

Example:

class Example(object):
    """ Some docstring

    Parameters
    ----------------
    first_param: int
        The last word should be three of four letters long and begin
        with
    """

gets wrapped as:

class Example(object):
    """ Some docstring

    Parameters
    ----------------
    first_param: int
        The last word should be three of four letters long and begin
        withwith
    """

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