Skip to content

Fix break before ending paren#801

Merged
gpetiot merged 1 commit intoocaml-ppx:masterfrom
gpetiot:fix-break-before-ending-paren
May 2, 2019
Merged

Fix break before ending paren#801
gpetiot merged 1 commit intoocaml-ppx:masterfrom
gpetiot:fix-break-before-ending-paren

Conversation

@gpetiot
Copy link
Copy Markdown
Collaborator

@gpetiot gpetiot commented Apr 25, 2019

Fix #799
Removed the call to Location.is_single_line (#747), as a consequence we don't comply with indicate-multiline-delimiters anymore (only for these cases), but:

  • it is not possible to do that without relying on the concrete syntax (fmt_or_k c.conf.indicate_multiline_delimiters (fits_breaks ")" " )") (fmt ")") does not work for this case)
  • there was no space after the opening parenthesis anyway (and it is intended)

I also made the box structure closer to the one of the function case.

Copy link
Copy Markdown
Collaborator

@Julow Julow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a big change but I agree it's better since there is no space after the opening parenthesis.
Looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unecessary break before margin

3 participants