Make newline optional on the last line.