-
Marker comment to text in one line
Hey, I have a expression that copy comments from markers and add to text.
But I want all the texts in one line. How do I do it?n = 0;
t = 0;
x = text.sourceText;
if (marker.numKeys > 0){n = marker.nearestKey(time).index;
if (marker.key(n).time > time) n–;}
if (n > 0)
marker.key(n).comment; else ”;
I tried adding: replace(/\r/g, ”) at end of expression but didn’t work.