-
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Our team uses a .gitattributes file of
* -text
This means files checked out on Windows will often contain only Unix line endings: just ^Js (LF), and no ^Ms (CRs).
But when these files are reformatted using pydocstringformatter, the modified lines now end in ^M^J, but only those lines.
Perhaps pydocstringformatter can sense the line ending characters of the lines it's modifying, and use them instead of introducing ^Ms where none were there previously?
I think this a better solution than adding a config option, but a config option would be nice too, to be explicit.
If there's interest, I can try to cobble a PR, that accomplishes this task.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working