Cant split by line breaks
Hello,
I've looked everywhere for this, but I haven't had any results from suggestions in other discussions. I thought maybe it was somehow InDesign specific.
I'm trying to split a textframe's content by line breaks, in a file I didn't put together (and have no contact with the creator).
I initially tried
split('\n');
with no luck. ( split('\t'); did work to split by tabs )
I have since tried everything I can think of / found online,
split('\\n');
split('\r\n');
split('/\r\n|\n|\r/');
split('<br>');
split('</br>');
split('¶ '); ( getting desperate 😕😕 )
When I alert the contents it is split on two lines, so I know the content is broken up.
And when I enable 'show hidden characters' it does show a ¶ character at the end of the lines I'm trying to split.
Does anyone know what character/code I should be using to split by?
Or is there somewhere in settings/preferences where I could specify the line break character for the document or paragraph style? ( I looked but couldn't find anything that sounded relevant)
This is slowly driving me crazy.
Any help would be very greatly appreciated!
