Open damolina-stripe opened 7 months ago
def foo(e) e.to_s.each_line(chomp: true) { |l| X } end
In my repro, X was a long namespaced-method call so I was looking to learn whether rubyfmt would recommend to keep as a single line or else.
X
rubyfmt
def foo(e) e.to_s.each_line(chomp: true) { | l | X } end
Unexpected formatting, breaking variable declaration across multiple lines seems wrong
|l|
Input file
In my repro,
X
was a long namespaced-method call so I was looking to learn whetherrubyfmt
would recommend to keep as a single line or else.Rubyfmt's output
This breaks because
Unexpected formatting, breaking variable declaration across multiple lines seems wrong
|l|