text/
vis_newline.pro
top vis_newline
result = vis_newline( [/unix] [, /windows])
Returns the newline separator(s) for the OS: linefeed on UNIX platforms and carriage return/linefeeds for Windows.
Return value
string
Keywords
- unix in optional type=boolean
use just linefeed
- windows in optional type=boolean
use carriage return and linefeed
Examples
It can be useful to create a single string from a string array in some cases:
IDL> sarr = strtrim(indgen(10), 2)
IDL> print, strjoin(sarr, vis_newline())
File attributes
Modification date: | Thu Aug 25 13:24:10 2011 |
Lines: | 33 |
Docformat: | rst rst |