Skip to content

RHS assignment persistent line breaks introduce extra indentation in pipes #220

Closed
@gadenbuie

Description

❯ cat test.R
data <-
  starwars |>
  filter(height > 172) |>
  select(1:3)

❯ air format test.R
❯ cat test.R       
data <-
  starwars |>
    filter(height > 172) |>
    select(1:3)

❯ air --version    
air 0.3.0

As a fan of the persistent line break in this case, I really want all of the expressions in the pipeline to be indented to the same level:

# 😊
data <-
  starwars |>
  filter(height > 172) |>
  select(1:3)

# 😥
data <-
  starwars |>
    filter(height > 172) |>
    select(1:3)

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions