floskell icon indicating copy to clipboard operation
floskell copied to clipboard

Preserve blank lines between comments and surrounding syntax elements

Open ennocramer opened this issue 6 years ago • 2 comments

Follow up for issue #19.

Implement logic to preserve spacing around comments as in

function1 = undefined

--

function2 = undefined

The current output is

function1 = undefined

--
function2 = undefined

ennocramer avatar May 03 '19 18:05 ennocramer

Thanks - I'll remember to keep issues separate next time!

Rhywun avatar May 03 '19 19:05 Rhywun

I'm not sure if this is the same issue but:

foo = do
    {- blab la -}
    bar <- command
    bar

is formatted to

foo = do
    {- blab la -}bar <- command
    bar

which is clearly a syntax error.

domenkozar avatar May 04 '19 08:05 domenkozar