A Word About Line Numbers

headmaster @ 12:23 am


GoDaddy.com, IncWe noticed a difference between some of the Joomla! files on the godaddy server and the zipped files in our local machines. After some experimentation we noted the following behavior:

Uploaded zip files installed by the Joomla! installer have empty lines inserted after every statement. That is, there is a hard line break after every line so that the code reads:

line 1 code;
 
line 2 code;
 
line 3 code;

The same files, decompressed on our local machines, look like this:

line 1 code;
line 2 code;
line 3 code;

The end result is of course larger files and double the line numbers. Actually more than double because already existing empty lines also beget new empty lines after them.

line 1 code; //New line below already existed, new empty line is created
 
 
line 2 code; //Same here
 
 
line 3 code;
 
line 4 code;

The same file in the example above decompressed on our local machines, looks like this:

line 1 code;
 
line 2 code;
 
line 3 code;
line 4 code;

This also means that reference to specific places in he code via line number can potentially be wrong.

Solution

We believe this is being caused by something in the godaddy server decompression software.

The issue is not a critical one, since we don’t want to spend the resources trying to fix something we suspect is beyond our immediate control we will simply make code references via context. That simply means including enough source code for someone to be able to find the correct section of code by doing a text search and identifying the code by its context.





Ajax CSS CSS gradients CSS rounded corners CSS Style Sheets CSS Transparency error Failed Evaluations footer header image gallery JavaScript javaScript JavaScript Errors jQuery jquery Lightbox light box links open source PHP PHP PHP scripts Pretty Photo prettyPhoto Programming Languages Script Evaluations Search Engine Optimization StatusNet StatusNet themes templates themes Useful CSS Code Useful WordPress Code Web Applications Web Design Web Development Webmaster Toolbelt WordPress wordpress Word Press WordPress 3.3.2 word press links WordPress Plugins wordpress theme
  • Digital Goodies