You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add - in front of str.trim(), I see the dash. If I return hello from the transformer, I see hello for each line. But for whatever reason, removing leading white space doesn't have any effect. .trim() and .replace(/^\s*) don't have any effect.
As far as I understand, .trim() supposed to work with unicode white spaces as well, so I don't understand why this wouldn't work. What am I doing wrong?
The text was updated successfully, but these errors were encountered:
I'm trying to display multiple lines of text so that when they wrap, there's no leading white space. I don't fully understand why this doesn't work:
If I add
-
in front ofstr.trim()
, I see the dash. If I returnhello
from the transformer, I seehello
for each line. But for whatever reason, removing leading white space doesn't have any effect..trim()
and.replace(/^\s*)
don't have any effect.As far as I understand,
.trim()
supposed to work with unicode white spaces as well, so I don't understand why this wouldn't work. What am I doing wrong?The text was updated successfully, but these errors were encountered: