no newline on last line if in longpoll mode