| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Document |
JDocument |
setLineEnd |
setLineEnd() |
Never | Work in Progress |
Sets the line end style to Windows, Mac, Unix or a custom string.
void setLineEnd ( $style )
| $style | string | is a string containing the style of the document. It can be ‘win’, ‘mac’, ‘unix’ or a custom string. |
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