Skip to content

Correct indentation for pipe operator #243

@hunterboerner

Description

@hunterboerner

The elixir style guide recommends this:

# Multiline pipelines use a single level of indentation.
some_string
|> String.downcase
|> String.strip

# Multiline pipelines on the right side of a pattern match
# should be indented on a newline
sanitized_string =
  some_string
  |> String.downcase
  |> String.strip

emacs-elixir will indent the second example as:

sanitized_string =
  some_string
|> String.downcase
|> String.strip

It would be nice if support for the elixir style guide format could be added. Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions