Detect new line

Hi everyone,

do anyone have any idea how to detect if the text is on a new line or not?

I intend to copy text from a field in document A to another field in document B. So the question here is how do i detect whether the text is reaching the next new line or not?

Thanx in advance.

Best

Hengshi