====== setLineEnd ====== {#JAPI Joomla.Framework Document JDocument::setLineEnd #} 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. global $mainframe; $document =& JFactory::getDocument(); $document->setLineEnd( 'mac' ); echo "Style: " . $document->getLang(); Might produce: Language: mac