Table of Contents

setLineEnd

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Document Class JDocument Method setLineEnd Reference setLineEnd() Never Work in Progress

Sets the line end style to Windows, Mac, Unix or a custom string.

Syntax

void setLineEnd ( $style )

$style string is a string containing the style of the document. It can be ‘win’, ‘mac’, ‘unix’ or a custom string.

Examples

Set the line end style of the current document.

Example

global $mainframe;

$document =& JFactory::getDocument();
$document->setLineEnd( 'mac' );

echo "Style: " . $document->getLang();

Might produce:

Result

Language: mac