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

Doc comments get placed on same line as external #1857

Closed
zploskey opened this issue Mar 9, 2018 · 1 comment
Closed

Doc comments get placed on same line as external #1857

zploskey opened this issue Mar 9, 2018 · 1 comment

Comments

@zploskey
Copy link
Contributor

zploskey commented Mar 9, 2018

On the 3.1.0 version of refmt, a doc comment on the line preceding an external gets reformatted onto the same line as the external if it is short enough. I think we probably want to preserve the line break.

Before:

/** The url of the response. */
[@bs.send] external url : t => string = "";

After:

/** The url of the response. */ [@bs.send] external url : t => string = "";
@zploskey
Copy link
Contributor Author

zploskey commented Mar 9, 2018

Also observed this:

/** The url of the response.                                      */ [@bs.send]
external url : t => string = "";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant