: 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
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?
More posts by @Vandalay111
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.