Skip to content

Bug: newlines in string literals in toplevel extension points are not considered for line breaking #1053

@ceastlund

Description

@ceastlund

Describe the bug
Below, the %expect has no newline before {|, but %%expect does put a newline before {|. The newline is unnecessary.

;;
[%expect {|
___________________________________________________________
|}]

[%%expect
  {|
___________________________________________________________
|}]

How to Reproduce
I get the above formatting using ocamlformat built from b28bb02 using --profile=janestreet.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions