Considering the effect of CH_EOF on line_num