fix: don't display the last separator if it's not \n