I think the order matters. The following works for me on TTerm 4.96. Cheers, fwj
CRLF = #10#13 CRLFLF = #10#10#13 dispstr '========' CRLF dispstr 'Line 1' CRLF ;expect no blank above; no blank below dispstr 'Line 2' CRLFLF ;expect no blank above; a blank below dispstr 'Line 3' CRLF ;expect a blank above; a blank below dispstr CRLF 'Line 4' CRLF ;expect a blank above; no blank below dispstr 'Line 5' CRLFLF ;expect no blanks above; 2 blanks below dispstr CRLF 'Line 6' CRLFLF ;expect 2 blanks above; 3 blanks below dispstr CRLFLF 'Line 7' CRLFLF ;expect 3 blanks above; a blank below dispstr '========' CRLF
According to chapter "About new line characters" in appendix of the help file, the newline is created by #13#10 (assuming I'm on windows machine). as i want a proper logfile that is readably by humans, i intend to give some extra output to the screen and therefore to the logging file.
But newlines are acheived neither by adding #13#10 nor adding 13 10 to the dispstr command, instead those characters are completely omitted. if more #10 are added, it seems to work for the first "#13#10#10" sequence. pelase see code below for example
This happens in TT 4.89 and 4.91.