insert newlines at end of buffer