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

Blank lines? #19

Closed
Rhywun opened this issue Mar 12, 2019 · 3 comments
Closed

Blank lines? #19

Rhywun opened this issue Mar 12, 2019 · 3 comments

Comments

@Rhywun
Copy link

Rhywun commented Mar 12, 2019

(1) Is there any way to eliminate the blank lines that are inserted between definitions in a where clause? I want to eliminate the blank line shown below.

 where
  output = replaceAll input configs

  total  = countAll input configs

(2) Is there any way to preserve a blank line between a comment and a function definition? After reformatting, the second blank line below is removed.

function1 = undefined

--

function2 = undefined

I tried the preserve-vertical-space option but it doesn't seem to apply in either of these instances.

Thanks!

@ennocramer
Copy link
Owner

There is sadly no option for either at the moment. I've been thinking about compact where bindings before, but I could not come up with a useful set of rules, yet. Maybe it will have to be a global on/off switch.

As for blank lines before/after comments, I think it should be possible improve the situation.

@Rhywun
Copy link
Author

Rhywun commented May 3, 2019

The first one is really vexing me :) - thanks @ennocramer and @amesgen for looking into this!

@ennocramer
Copy link
Owner

The first issue is resolved in master. Closing this issue in favor of followup issue #28.

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

2 participants