FYI, Steve L Walker's original code: this.rawValue =
str.replace(/\s/,"\n");Actually replaces any whitespace "\s" character
with a newline "\n" character, not a carriage return "\r" character as
stated in the answer and requested by the OP. While the newline
character the OP got is likely what they actually needed, an OSX and
Linux end-of-line sequence, the statements seem to indicate the opposite
has occurred.To replace any whitespace "\s" character with a carriage
return "\r" character, use a...