Skip to content

Idempotency Failure: Multiple Leading Blank Lines Collapse to One on First Pass then Removed on Second Pass #941

@nicholasdower

Description

@nicholasdower

Originally reported in #915

Commit: 95210d7

Input

→ View on rubyfmt.run

 
 
def foo
end

Output

→ View on rubyfmt.run

 
def foo
end

Second Output

def foo
end

Expected behavior

The output should be stable.

Found in: http_parser.rb 0.8.1 (ext/ruby_http_parser/vendor/http-parser-java/tools/const_char.rb)
Found in: http_parser.rb 0.8.1 (ext/ruby_http_parser/vendor/http-parser-java/tools/lowcase.rb)
Found in: http_parser.rb 0.8.1 (ext/ruby_http_parser/vendor/http-parser-java/tools/parse_tests.rb)
Found in: parslet 2.0.0 (lib/parslet/accelerator.rb)
Found in: parslet 2.0.0 (lib/parslet/source/line_cache.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