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

comment code block error #1937

Closed
jiapengwen opened this issue Jan 22, 2021 · 1 comment
Closed

comment code block error #1937

jiapengwen opened this issue Jan 22, 2021 · 1 comment
Labels
F: comments The syntactic kind. Not in the language grammar, always on our minds. Best bugs. R: duplicate This issue or pull request already exists T: bug Something isn't working T: style What do we want Blackened code to look like?

Comments

@jiapengwen
Copy link

when I comment multi line code
before

        while stack:
            temp = stack.pop()
            ret.append(temp.val)
            if temp.right:
                stack.append(temp.right)
            if temp.left:
                stack.append(temp.left

expect:

        # while stack:
            # temp = stack.pop()
            # ret.append(temp.val)
            # if temp.right:
                # stack.append(temp.right)
            # if temp.left:
                # stack.append(temp.left

real:

        # while stack:
        # temp = stack.pop()
        # ret.append(temp.val)
        # if temp.right:
        # stack.append(temp.right)
        # if temp.left:
        # stack.append(temp.left)

it shouldn't change my code indent

@jiapengwen jiapengwen added the T: bug Something isn't working label Jan 22, 2021
@ichard26 ichard26 added C: configuration CLI and configuration T: style What do we want Blackened code to look like? F: comments The syntactic kind. Not in the language grammar, always on our minds. Best bugs. and removed C: configuration CLI and configuration labels Apr 2, 2021
@ichard26 ichard26 added the R: duplicate This issue or pull request already exists label May 30, 2021
@ichard26
Copy link
Collaborator

Hey thanks for the report, although I'll be closing in favour of #1542.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F: comments The syntactic kind. Not in the language grammar, always on our minds. Best bugs. R: duplicate This issue or pull request already exists T: bug Something isn't working T: style What do we want Blackened code to look like?
Projects
None yet
Development

No branches or pull requests

2 participants