Adds proper trailing newlines.