Skip to content

if-else not indented correctly #95

Closed

Description

@lorenzwalthert

If-else statement cannot be styled correctly:

library(styler)
cat(style_text("if (x) { 1 } else if (x) {22}"), sep = "\n")
#> if (x) {
#>   1
#> } else if (x) {
#>     22
#>   }

Activity

  1. added a commit that references this issue on Jul 28, 2017
  2. added a commit that references this issue on Aug 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions