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
Remove non-breaking space at the beggining of comments #2091
Comments
By "insecable space" do you mean the non-breaking space (nbsp) character https://www.compart.com/en/unicode/U+00A0 ? If so it seems reasonable to me for Black to replace leading nbsps in comments. |
Yes, sorry if it was not clear I translated the name from french. |
I'm interested to work on this, if a pull request with this change is going to be merged. |
I'd merge it (unless someone else comes up with a problem with this suggestion). |
I made an attempt, but I have a crash with type ignore comment for python 3.6 and 3.7 and I don't quite know what to do with it. Do you have an advise on how to debug it ? |
@ichard26 answered my question : #2092 (comment) |
Black apply a space after a
#
in comment like so:The thing is, often we developers fat fingers an insecable space after creating the
#
by not releasing the Alt Gr key fast enough.Then black had a space before it resulting in visually two spaces:
I'd like black to remove insecable spaces at the beginning of comment and then replaces them with a real space:
The text was updated successfully, but these errors were encountered: