Mobile app version of vmapp.org
Login or Join
Vandalay111

: Blank lines between sourcecode I'm so confused with a strange behaviour. Actually I have edited some php files remotely with my PhpDesigner8 (a php editor). Everything goes right, but when my

@Vandalay111

Posted in: #Code #TextEditor

I'm so confused with a strange behaviour. Actually I have edited some php files remotely with my PhpDesigner8 (a php editor). Everything goes right, but when my teammates reopen the files that I have edited the source code have blank lines like below:

class AdminController extends Controller

{

function __construct()

{

parent::__construct();



if (!$this->session->can_admin())

{

show_error('Solo para administradores.');

}

$this->load->library('backend');

}

}


Instead of

class AdminController extends Controller
{
function __construct()
{
parent::__construct();
if (!$this->session->can_admin())
{
show_error('Solo para administradores.');
}
$this->load->library('backend');
}
}


Did you have experience these kinds of problems?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Vandalay111

1 Comments

Sorted by latest first Latest Oldest Best

 

@Phylliss660

This is the standard line ending issue.

On Unix, line endings end with LF ("n"), while Dos and Windows machines used a CRLF combination ("rn"). If your editor is changing the line endings as it writes files, the other system won't automatically adjust that.

On the opposite end, older versions of Windows Notepad doesn't recognize line endings from Unix systems, and places everything into one large line.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme