Livecode Wiki
Advertisement

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

set the outputLineEndings to <lineEnding>

Examples:

set the outputLineEndings to "lf"
put the outputLineEndings into tLineEnding

Use the outputTextEncoding property to determine what text conversion to perform when writing text strings to stdout.

outputTextEncoding 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.

Parameters:

  • lineEnding (enum): 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
  • Description:Use the outputTextEncoding property to determine what text conversionto perform when writing text strings to stdout.
Advertisement