Page 1 of 1

Usage of sc br

Posted: 30 Apr 2012 20:18
by neutrox
Help file says:
br;
Prevent any line breaking in commands copytext, msg, and text.
But

Code: Select all

br; echo "well <crlf> done";
still does the line breaking.

What am I doing wrong?

Some embarrassing attempts:

Code: Select all

echo br("well <crlf> done");

Code: Select all

br echo ("well <crlf> done");

Code: Select all

br (echo "well <crlf> done");

Re: Usage of sc br

Posted: 30 Apr 2012 21:05
by Stefan
neutrox wrote:Help file says:
br;
Prevent any line breaking in commands copytext, msg, and text.
That should be read:
br;
Stop of using the special line breaker symbol. Set back to original CRLF as line separator.


See this for example:

Code: Select all

 $test = "well#<crlf>done";

  // Set new line breaker "#":
  br "#";
  msg $test; 

  //Set back to original CRLF as line separator.
  br;
  msg $test;


First i have two line breakers # AND <crlf>
(why two? That's unexpected for me. Bug? Because it says "Redefine the default line breaker" and not "Additional ...")
---------------------------
XYplorer
---------------------------
well

done
---------------------------
OK
---------------------------



Second i have the old behaviour back:
---------------------------
XYplorer
---------------------------
well#
done
---------------------------
OK
---------------------------

Re: Usage of sc br

Posted: 03 May 2012 02:24
by neutrox
Ah, much better... Thanks for the clarification, Stefan. Documentation is really ambiguous on this point.