get rid of extra newlines in printed literals