emacs-ess / ESS

Emacs Speaks Statistics: ESS
https://ess.r-project.org/
GNU General Public License v3.0
623 stars 162 forks source link

Indentation after pipe-bind (=>) followed by pipe. #1209

Closed ballardt closed 2 years ago

ballardt commented 2 years ago

When the result of a line containing the pipe-bind operator => is piped (e.g. via |>), the lines below it are indented too far.

Current indentation with ess-style set to RRR:

1:10 |>
    x => 2 ** x |>
             sum()

Expected indentation:

1:10 |>
    x => 2 ** x |>
    sum()

Note that ess-indent-offset dictates how far the next line is indented after the start of the RHS of =>.