function strs = strdisp(strs)
% STRDISP Cleans up a string or a cell array of strings of newline/linefeed
% characters for display purposes.

% Copyright 2000-2023 The MathWorks, Inc.

if ischar(strs) || iscellstr(strs)
  % Remove newline and return characters.
  strs = regexprep( strs, '\n\r?', ' ' );
else
  error(message('SLControllib:modelpack:InvalidInputArguments' ));
end
