add line end for empty line.