Skip to content

On master - file left with two blank lines at end #328

@adamtheturtle

Description

@adamtheturtle

I have a Python file, example.py which ends with a newline:

class A:
    """
    Hello.
    """
adam@Adams-MacBook-Pro ~/D/r/vws-python (docformatter-debug)> cat example.py
class A:
    """
    Hello.
    """
adam@Adams-MacBook-Pro ~/D/r/vws-python (docformatter-debug)>

docformatter on master (and not in 1.7.7) adds an extra newline to the end of the file.
This happens since #318.
This matters to me as I wish to use Python 3.14 and only recent commits of docformatter are installable with 3.14.

Metadata

Metadata

Assignees

No one assigned

    Labels

    freshThis is a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions