prevent extraneous newlines