Hi,
cat - "concatenate files and print on the standard output" - offers -s option to suppress repeated empty lines.
However, an "empty" line (visual perspective) that behave only spaces or tabs is not considered as empty : one option -S that would address this scenario should be added to cat...
I hope to be clear :-)
Regards, Lacsap.