Leading or trailing white space characters in file names


Re: Leading or trailing white space characters in file names
#31
Here's a summary:

Replace in http://www.ldraw.org/Article218.html#files:

Quote:Every line of the file contains one command. With few exceptions, every command is independent of other lines. The exceptions are the BFC meta-commands which modify the behaviour of one or more following command lines. There is no line length restriction. The whitespace characters allowed for keyword and parameter separation include spaces and tabs. Every command starts with a number, called a line type. The function and format of the line is determined by the line type.

with

Quote:Every line of the file contains one command. With few exceptions, every command is independent of other lines. The exceptions are the BFC meta-commands which modify the behaviour of one or more following command lines. There is no line length restriction. Every command starts with a number, called a line type. The function and format of the line is determined by the line type.

Add a section below it:

Quote:White space

Command parameters for every line type must be separated by white space. The white space characters used to separate these parameters may be either space or tab. Both should be treated the same, and any number of contiguous white space characters (1 or more) are allowed.

And as a result of the above we can adjust the line:

Quote:<file> is the filename of the sub-file referenced and must be a valid LDraw filename.

to

Quote:<file> is the filename of the sub-file referenced and must be a valid LDraw filename. Any leading and/or trailing whitespaces must be ignored.

Add to http://www.ldraw.org/Article398.html

PartDescription is the descriptive name of the part ...

Quote:Leading white space in front of this very first linetype 0 is not allowed.

If we all agree I'm going to call for a vote.

w.
LEGO ergo sum
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Re: Leading or trailing white space characters in file names - by Willy Tschager - 2012-02-08, 22:34

Forum Jump:


Users browsing this thread: 15 Guest(s)