Skip to content

How to preserve as least 1 newline between comments? #328

@Norlandz

Description

@Norlandz

How to preserve as least 1 newline between comments?

Give:

-- comment AA


-- comment BB
-- comment CC

drop table if exists accounts;

-- comment DD

Expected output:

remove extra newlines between comments &/ statements;
but preserve at least one.

-- comment AA

-- comment BB
-- comment CC

drop table if exists accounts;

-- comment DD

Current output:

All newlines between comments &/ statements are removed.

-- comment AA
-- comment BB
-- comment CC
drop table if exists accounts;

-- comment DD

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions