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

Wrong indention for nested for loop #456

Closed
lorenzwalthert opened this issue Jan 5, 2019 · 0 comments
Closed

Wrong indention for nested for loop #456

lorenzwalthert opened this issue Jan 5, 2019 · 0 comments

Comments

@lorenzwalthert
Copy link
Collaborator

txt <- c(
  "for (x in 1) {",
  "  x",
  "  for (x in k) ",
  "   3",
  # "  }",
  "}"
)
styler::style_text(txt, scope = "spaces")
#> for (x in 1) {
#>   x
#>   for (x in k)
#>  3
#> }

Created on 2019-01-05 by the reprex package (v0.2.1)

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

No branches or pull requests

1 participant