diff --git a/formatTest/typeCheckedTests/expected_output/attributes.rei b/formatTest/typeCheckedTests/expected_output/attributes.rei index f1acc5f56..4c6556400 100644 --- a/formatTest/typeCheckedTests/expected_output/attributes.rei +++ b/formatTest/typeCheckedTests/expected_output/attributes.rei @@ -78,5 +78,7 @@ type ttttt = { x: int, }; -module Foo: {[@someattr] - let foo: int => int;}; +module Foo: { + [@someattr] + let foo: int => int; +}; diff --git a/src/reason-parser/reason_pprint_ast.ml b/src/reason-parser/reason_pprint_ast.ml index 94c67d2e4..c5177b4a2 100644 --- a/src/reason-parser/reason_pprint_ast.ml +++ b/src/reason-parser/reason_pprint_ast.ml @@ -7419,7 +7419,7 @@ let printer = object(self:'self) ~comments:self#comments s in - let shouldBreakLabel = if List.length s > 1 then `Always else `Auto in + let shouldBreakLabel = if List.length s > 0 then `Always else `Auto in label ~indent:0 ~break:shouldBreakLabel