The margins are not content of the text, but defined by the page style, probably modified by the paragraph style or manual indentations.
Therefore no standard means of searching (F&R with Regex e.g.) can find them. Also the old extension AltSearch doesn’t allow for such a search.
A workaround based on counting characters requires the text to be in monospace at least - and is a doubtable crutch anyway.
Thus you will have to write special user code - or find a more intelligent teleprompter software.
= = Editing = =
Don’t see clear progress.
Therefore I sketched a little Basic Sub showing with what you could start.
With a simple example it worked for me.
Sub replaceAsTechnogeekcaWants()
REM Should replace any single space at the end of a line with a hard linebreak.
REM Staring at:
vCur = ThisComponent.CurrentController.ViewCursor
'On Error Goto fail
Do While True
vCur.gotoEndOfLine(False)
vCur.goLeft(1, True)
If vCur.String=" " Then vCur.String = Chr(10)
vCur.goRight(1, False)
If vCur.isAtEndOfLine() Then Exit Do
Loop
fail:
End Sub