|
In lugnet.cad.dev, Michael Heidemann wrote:
|
In lugnet.cad.dev, Jim DeVona wrote:
|
So, then, what do you say? Are there any good reasons for LDraw files to end
with a line ending? The spec is
silent, but it doesnt specify anything about line endings in general,
either (nevertheless, arent DOS CRLF line endings conventional?). Do other
editors like ldglite, LeoCAD, MLCad, or LDraw itself save files with final
newlines?
Note: this is not about whether or not final newlines are better than
files without final newlines. Im just curious about compatibility and
consistency.
Jim
|
We had a discussion about this item some times ago. I can not find the thread
right now. The conclusion was:
The user should not mind about that, the programer should.
So if you write a prog for LDraw compatible files, you should check for line
endings like on mac or dos!! Also an end line is not needed, so the programer
has to care about that. It is not so complicated to write a prog that fits
for this. Before I use a file, I check for these points and write it back
with what I intend it should be. I hope this answers your question. cu
|
I echo Mike. This is a programmers issue (is it honestly that hard to check? I
would say no) and not something that should be put into the spec.
-Orion
|
|
Message is in Reply To:
| | Re: Thoughts sought on final newlines
|
| (...) We had a discussion about this item some times ago. I can not find the thread right now. The conclusion was: The user should not mind about that, the programer should. So if you write a prog for LDraw compatible files, you should check for (...) (17 years ago, 20-Oct-07, to lugnet.cad.dev, lugnet.cad.dev.mac, FTX)
|
5 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|