SED - File Spacing - Double space a file which already has blank lines in it

Output file should contain no more than one blank line between lines of text.

sed '/^$/d;G' filename

Example

Running that command again this file:

testfile
aaa
 
bbb
ccc

returns:

testfile
aaa
 
bbb
 
ccc