Call for votes: Leading or trailing white space characters in file names


Call for votes: Leading or trailing white space characters in file names
#1
Please vote on the proposal below. Please modify the Subject to include your name and vote, in addition to giving your vote in the text.



Update the LDraw.org File Format Version 1.0.0 in the following way:

Replace

' Wrote: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

' Wrote:Basic parsing / file content

An LDraw file consists of one command per line. There is no line length restriction. Each command consists of optional leading whitespace followed by whitespace-delimited tokens. Some commands also have trailing arbitrary data which may itself include internal whitespace; such data is not tokenized, but treated as single unit according to the command.

Whitespace is defined as one or more spaces (#32), tabs (#9), or combination thereof.

Lines may also be empty or consist only of whitespace. Such lines have no effect.

If a line is non-empty, the first token must be an integer from the list of valid Line Type numbers. This number dictates further parsing of tokens for that line. The parsing rules per linetype follow below.

Replace

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

with

' Wrote:<file> is the filename of the sub-file referenced and must be a valid LDraw filename. Any leading and/or trailing whitespace must be ignored. Normal token separation is otherwise disabled for the filename value.
LEGO ergo sum
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Call for votes: Leading or trailing white space characters in file names - by Willy Tschager - 2012-03-19, 14:47
Roland Melkert: YES - by Roland Melkert - 2012-03-19, 18:10
Allen Smith: YES - by Allen Smith - 2012-03-20, 3:38
Travis Cobbs: YES - by Travis Cobbs - 2012-03-20, 4:06
Chris Dee: YES - by Chris Dee - 2012-03-20, 7:27
Willy Tschager: YES - by Willy Tschager - 2012-03-20, 8:11

Forum Jump:


Users browsing this thread: 2 Guest(s)