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

Range formatting of comment with indentation not working #270

Closed
renkun-ken opened this issue Jun 2, 2020 · 0 comments · Fixed by #271
Closed

Range formatting of comment with indentation not working #270

renkun-ken opened this issue Jun 2, 2020 · 0 comments · Fixed by #271
Labels

Comments

@renkun-ken
Copy link
Member

#268 introduces the following problem where range formatting of comment with initial indentation will result in incorrect indentation.

fun <- function(x, y) {
  if (x > y) {
    x + y
  } else {
    # test|
  }
}
fun <- function(x, y) {
  if (x > y) {
    x + y
  } else {
  # test
  |
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant