discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

string example in user manual

LB
L Boyd
Fri, Oct 2, 2015 2:50 PM

In the manual section for strings ( OpenSCAD_User_Manual/General#Strings ), I
suspect the version number 2013.02.28 is wrong. It implies that a change was
made after 2011.04, which I doubt since the current version 2015.03 has the
same output as that shown for 2011.04.

The manual has the following:

Note: This behavior is new since OpenSCAD-2011.04. You can upgrade old files
using the following sed command: sed 's/\/\\/' non-escaped.scad >
escaped.scad

Example:

echo("The quick brown fox \tjumps "over" the lazy dog.\rThe quick brown
fox.\nThe \lazy\ dog.");

Output:
ECHO: "The quick brown fox jumps "over" the lazy dog.
The quick brown fox.
The \lazy\ dog."

Output: in OpenSCAD version 2013.02.28
ECHO: "The quick brown fox \tjumps "over" the lazy dog.
The quick brown fox.\nThe \lazy\ dog."

--
View this message in context: http://forum.openscad.org/string-example-in-user-manual-tp14045.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

In the manual section for strings ( OpenSCAD_User_Manual/General#Strings ), I suspect the version number 2013.02.28 is wrong. It implies that a change was made after 2011.04, which I doubt since the current version 2015.03 has the same output as that shown for 2011.04. The manual has the following: Note: This behavior is new since OpenSCAD-2011.04. You can upgrade old files using the following sed command: sed 's/\\/\\\\/' non-escaped.scad > escaped.scad Example: echo("The quick brown fox \tjumps \"over\" the lazy dog.\rThe quick brown fox.\nThe \\lazy\\ dog."); Output: ECHO: "The quick brown fox jumps "over" the lazy dog. The quick brown fox. The \lazy\ dog." Output: in OpenSCAD version 2013.02.28 ECHO: "The quick brown fox \tjumps \"over\" the lazy dog. The quick brown fox.\nThe \\lazy\\ dog." -- View this message in context: http://forum.openscad.org/string-example-in-user-manual-tp14045.html Sent from the OpenSCAD mailing list archive at Nabble.com.