Fixed input newline parsing