In case you've never had to reach for it, if you have multiple adjacent blank li...

@gumnos@bsd.cafe

In case you've never had to reach for it, if you have multiple adjacent blank lines in a file and want to squeeze them all down to a single blank line, cat(1) has you covered¹:

$ cat -s file_with_multiple_blanks.txt > squeezed.txt

This was particularly useful when editing a config file in #vi(1) where it was just a matter of

:%!cat -s

to squeeze them all.

⸻
¹ The "-s" isn't POSIX, but it's widely supported on BSDs and Linuxen