Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Some space out of range strip when using -l argument. #1190

Open
EeyoreLee opened this issue Dec 15, 2023 · 2 comments
Open

[Bug] Some space out of range strip when using -l argument. #1190

EeyoreLee opened this issue Dec 15, 2023 · 2 comments

Comments

@EeyoreLee
Copy link
Contributor

def do_something():
    xs = []
    for x in xs:
        y = 'y'
        
        if y:
            pass

def do_something_else():
    return '-path 1'

the line 5 (one-based) has 8 spaces or 2 tabs. they are strip when I run yapf -l 10-10 xx.py -i or cat xx.py | yapf -l 10-10. line 10 is the last line.

@EeyoreLee
Copy link
Contributor Author

EeyoreLee commented Dec 15, 2023

Related issue vscode-extension-yapf #101 and #613

@EeyoreLee
Copy link
Contributor Author

Seems there's already a PR to fix it, could we merge it if it can address this issue after code review. #1102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant