discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Newline changed in .scad files between 2014-11-09 and 2014-12-04?

S
Scalpel78
Tue, Dec 9, 2014 5:39 PM

Hi,
have a piece of code that is crashing my Windows machine (not just the
OpenSCAD application, but the entire machine), and during troubleshooting I
noticed that the fileformat seems to have changed between the previous
version (2014-11-09) and the one I'm running now (2014-12-04).

When opening the .scad file in Notepad++ all the lines have an empty line
between them. So a four line long script ends up as eight lines. The lines
seems to have both a CR and a CRLF, which ends up as double the amount of
lines.

All the .scad files I created in the previous version only use CRLF as EOL
characters.

--
View this message in context: http://forum.openscad.org/Newline-changed-in-scad-files-between-2014-11-09-and-2014-12-04-tp10451.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi, have a piece of code that is crashing my Windows machine (not just the OpenSCAD application, but the entire machine), and during troubleshooting I noticed that the fileformat seems to have changed between the previous version (2014-11-09) and the one I'm running now (2014-12-04). When opening the .scad file in Notepad++ all the lines have an empty line between them. So a four line long script ends up as eight lines. The lines seems to have both a CR and a CRLF, which ends up as double the amount of lines. All the .scad files I created in the previous version only use CRLF as EOL characters. -- View this message in context: http://forum.openscad.org/Newline-changed-in-scad-files-between-2014-11-09-and-2014-12-04-tp10451.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Tue, Dec 9, 2014 10:53 PM

Are you saying

  1. a new file created in 2014.12.04, saved, opened in Notepad++, has the
    extra blank lines?
  2. a file created with 2014.11.09, saved, opened in Notepad++ have extra
    blank lines?

I use NP++, 1. does not have any extra blank lines, and View/Show-Symbal/All
just shows CRLF at EOL.


Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/

View this message in context: http://forum.openscad.org/Newline-changed-in-scad-files-between-2014-11-09-and-2014-12-04-tp10451p10458.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Are you saying 1. a new file created in 2014.12.04, saved, opened in Notepad++, has the extra blank lines? 2. a file created with 2014.11.09, saved, opened in Notepad++ have extra blank lines? I use NP++, 1. does not have any extra blank lines, and View/Show-Symbal/All just shows CRLF at EOL. ----- Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ -- View this message in context: http://forum.openscad.org/Newline-changed-in-scad-files-between-2014-11-09-and-2014-12-04-tp10451p10458.html Sent from the OpenSCAD mailing list archive at Nabble.com.
S
Scalpel78
Tue, Dec 9, 2014 10:59 PM

Scenario 1 gives blank lines.

I'm on version 2014-12-04. If I create a new file in OpenSCAD, and open it
using Notepad++ it looks like this:

http://forum.openscad.org/file/n10459/crcrlf.png

If I open up a file I created using the older version it looks good in
Notepad++.

--
View this message in context: http://forum.openscad.org/Newline-changed-in-scad-files-between-2014-11-09-and-2014-12-04-tp10451p10459.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Scenario 1 gives blank lines. I'm on version 2014-12-04. If I create a new file in OpenSCAD, and open it using Notepad++ it looks like this: <http://forum.openscad.org/file/n10459/crcrlf.png> If I open up a file I created using the older version it looks good in Notepad++. -- View this message in context: http://forum.openscad.org/Newline-changed-in-scad-files-between-2014-11-09-and-2014-12-04-tp10451p10459.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Tue, Dec 9, 2014 11:18 PM

Blink,Blink, light bulb finally lights...

I was using the Simple Editor, when I switched to Scintilla, I can reproduce
this.

I'll raise an issue.


Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/

View this message in context: http://forum.openscad.org/Newline-changed-in-scad-files-between-2014-11-09-and-2014-12-04-tp10451p10461.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Blink,Blink, light bulb finally lights... I was using the Simple Editor, when I switched to Scintilla, I can reproduce this. I'll raise an issue. ----- Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ -- View this message in context: http://forum.openscad.org/Newline-changed-in-scad-files-between-2014-11-09-and-2014-12-04-tp10451p10461.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Tue, Dec 9, 2014 11:25 PM

Added to existing  issue 915
https://github.com/openscad/openscad/issues/915#issuecomment-66378005  .


Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/

View this message in context: http://forum.openscad.org/Newline-changed-in-scad-files-between-2014-11-09-and-2014-12-04-tp10451p10462.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Added to existing issue 915 <https://github.com/openscad/openscad/issues/915#issuecomment-66378005> . ----- Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ -- View this message in context: http://forum.openscad.org/Newline-changed-in-scad-files-between-2014-11-09-and-2014-12-04-tp10451p10462.html Sent from the OpenSCAD mailing list archive at Nabble.com.
S
Scalpel78
Wed, Dec 10, 2014 5:49 PM

Also, if I go back to version 2014-11-09, open up a file originally created
in 2014-12-04, and save it, the double lines go away.

--
View this message in context: http://forum.openscad.org/Newline-changed-in-scad-files-between-2014-11-09-and-2014-12-04-tp10451p10475.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Also, if I go back to version 2014-11-09, open up a file originally created in 2014-12-04, and save it, the double lines go away. -- View this message in context: http://forum.openscad.org/Newline-changed-in-scad-files-between-2014-11-09-and-2014-12-04-tp10451p10475.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Tue, Dec 16, 2014 11:49 PM

Scalpel78 wrote

Also, if I go back to version 2014-11-09, open up a file originally
created in 2014-12-04, and save it, the double lines go away.

Confirmed this too. Scintilla was doing it correctly, so something changed.


Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/

View this message in context: http://forum.openscad.org/Newline-changed-in-scad-files-between-2014-11-09-and-2014-12-04-tp10451p10574.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Scalpel78 wrote > Also, if I go back to version 2014-11-09, open up a file originally > created in 2014-12-04, and save it, the double lines go away. Confirmed this too. Scintilla was doing it correctly, so something changed. ----- Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ -- View this message in context: http://forum.openscad.org/Newline-changed-in-scad-files-between-2014-11-09-and-2014-12-04-tp10451p10574.html Sent from the OpenSCAD mailing list archive at Nabble.com.