Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes


top source mg_newline

result = mg_newline( [/unix] [, /windows])

Returns the newline separator(s) for the OS: linefeed on UNIX platforms and carriage return/linefeeds for Windows.

Return value



unix in optional type=boolean

use just linefeed

windows in optional type=boolean

use carriage return and linefeed


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:52 2011
Lines: 33
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.