Skip to content

if-else not indented correctly #95

@lorenzwalthert

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
#>   }

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