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

Wrong indents with decorators and JSX #46

Open
yashrk opened this issue Jan 28, 2020 · 1 comment
Open

Wrong indents with decorators and JSX #46

yashrk opened this issue Jan 28, 2020 · 1 comment

Comments

@yashrk
Copy link

yashrk commented Jan 28, 2020

With ReasonReact example from https://reasonml.github.io/reason-react/docs/en/intro-example the default formating in reason mode is:

[@react.component]
  let make = (~name) =>
<button> {ReasonReact.string("Hello " ++ name ++ "!")} </button>;

The right formatting is, obviously, the following:

[@react.component]
let make = (~name) =>
  <button> {ReasonReact.string("Hello " ++ name ++ "!")} </button>;

Version of reason-mode — 20190710.1037 (from MELPA).

@yashrk
Copy link
Author

yashrk commented Jan 29, 2020

Fun fact: saving a file restores the right formatting.

Is it refmt?

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