remove newlines from one-line functions