google / google/yapf

[0.13.2, Windows] Breaks line endings

Open
#337 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14k
Forks
904
PR merge metrics
No merged PRs in 30d

Description

When I run yapf on a python file (just running yapf -i file.py) that had CR-LF line endings, it changes them to CR-CR-LF line endings. If I run it again, it changes everything to just CR line endings. I can also confirm that this doesn't happen with version 0.12.2.

I'm using this style file:
[style]
based_on_style = google
indent_width = 2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.