mglib

Personal IDL library for M. Galloy

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

strings/

mg_newline.pro


Routines

top 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

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, mg_newline())

File attributes

Modification date: Wed May 14 15:07:14 2014
Lines: 11
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.