check position of end of line(URGENT PLS)

Looks like this was answered for you in another thread: