outputLineEndings

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the outputLineEndings to <lineEnding>
Summary

The outputLineEndings property determines what line ending conversion to perform on text output.

Introduced4.6.3
OSmac, windows, linux
Platformsserver
Parameters
NameTypeDescription
lineEnding

The type of line ending to use.

lf: Normally used by Linux and Mac OS X
crlf: Normally used by Windows
cr: Not normally used on modern systems
Example
set the outputLineEndings to "lf"
put the outputLineEndings into tLineEnding
Related
Description

Use the outputLineEndings property to determine what line ending conversion to perform on text output.

outputLineEndings is only available when running in CGI mode (Server).

The quoted literals must be used when setting this property - the property expects a name not a sequence of bytes to use as the line-ending. The reason behind this is two-fold - (1) it is more 'correct' from the point of view it is identifying the style of line-ending rather than the sequence of bytes to use (2) 'cr' and 'lf' are defined as the same numToChar(10) constant on all platforms.