Skip to content

Idempotency Failure: Indentation Lost When Method-Call Arguments Start at Column 0 #937

@nicholasdower

Description

@nicholasdower

Originally reported in #915

Commit: 95210d7

Input

→ View on rubyfmt.run

def test
  @x.foo(
"b") ==

"d"
end

Output

→ View on rubyfmt.run

def test
  
@x.foo(
    "b"
  ) == "d"
end

Second Output

def test

  @x.foo(
    "b"
  ) == "d"
end

Expected behavior

The output should be stable.

Found in: xcpretty 0.4.1 (spec/xcpretty/formatters/formatter_spec.rb)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions