; docformat = 'rst' ;+ ; Splits a scalar string with newline characters into a string array. ; ; :Returns: ; s : in, required, type=string ; input string ;- function mg_strunmerge, s compile_opt strictarr case 1 of keyword_set(unix): crlf = string([10B]) keyword_set(windows): crlf = string([13B, 10B]) else: crlf = string(!version.os_family eq 'unix' ? [10B] : [13B, 10B]) endcase return, strsplit(s, crlf, /extract) end