Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refmt] Records with existing newlines are collapsed #1620

Closed
kyldvs opened this issue Nov 11, 2017 · 0 comments · Fixed by #2779
Closed

[refmt] Records with existing newlines are collapsed #1620

kyldvs opened this issue Nov 11, 2017 · 0 comments · Fixed by #2779
Labels
KIND: FEATURE REQUEST Printer things that have to do with turning an AST into Reason code

Comments

@kyldvs
Copy link

kyldvs commented Nov 11, 2017

Input:

let x = {one: 1, two: 2};

let x = {
  one: 1,
  two: 2
};

Desired output:

let x = {one: 1, two: 2};

let x = {
  one: 1,
  two: 2
};

Actual output:

let x = {one: 1, two: 2};

let x = {one: 1, two: 2};

Similar prettier example for reference: https://goo.gl/uiNSVH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
KIND: FEATURE REQUEST Printer things that have to do with turning an AST into Reason code
Projects
None yet
2 participants