I’m trying to figure out how to count the number of line breaks in a string. Someone put this brilliant concept in another post the count the number of occurrences of a character:
[[LVAR1.text.length - LVAR1.text.replace (“a”,"").length]]
but I don’t know how to use ‘line break’ instead of ‘a’ in the above. I’m trying to count the number of hard linebreaks so I can resize the height of a widget to accomodate both the number of characters + the number of hard line breaks.
Thanks!