zaphar / ucg

A Universal Configuration Grammar
Apache License 2.0
36 stars 3 forks source link

`ucg fmt` puts one too many newlines at EOF #49

Closed durin42 closed 5 years ago

durin42 commented 5 years ago

The input

let foo = {bar= "baz"};
out yaml foo;

comes out of ucg fmt as:

let foo = {
    bar = "baz",
};

out yaml foo;

with two newlines at EOF. I feel like it should have only one.