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

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

Open
Norlandz opened this issue Dec 25, 2023 · 0 comments
Open

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

Norlandz opened this issue Dec 25, 2023 · 0 comments

Comments

@Norlandz
Copy link

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
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

1 participant