I've got a large text field which has new line characters (CRLF).
In ExB they're being represented correctly in the text widget, but not in the popup in the map widget.
Classic Map Viewer represents correctly, but new Map Viewer doesn't.
It appears ExB is honoring the new Map Viewer, but not Classic.
Any ideas?
Solved! Go to Solution.
It looks like carriage returns are inconsistent. Here's an expression:
'Line followed by "\\n"\n' +
'Line followed by "TextFormatting.NewLine"' +
TextFormatting.NewLine +
'Line followed by "\\r"\r' +
'Final Line'
In the expression builder, it gives me this:
Which is what I'd expect. But in the popup:
Would it be a simple matter to just replace the carriage returns with newlines?
It looks like carriage returns are inconsistent. Here's an expression:
'Line followed by "\\n"\n' +
'Line followed by "TextFormatting.NewLine"' +
TextFormatting.NewLine +
'Line followed by "\\r"\r' +
'Final Line'
In the expression builder, it gives me this:
Which is what I'd expect. But in the popup:
Would it be a simple matter to just replace the carriage returns with newlines?
Unfortunately I have very little control over the data coming into attributes.
We settled on removing the popups and relying on a text window. At least it's consistent.
Thanks.
What about using Arcade's Replace function? I know you already went with a different solution, but may be worth looking into.
var out_str = ' 1 \r 2 \r 3'
var replaced = Replace(out_str, '\r', '\n')
return 'Original:\n' + out_str + '\nReplaced:\n' + replaced