DOpus.Output is greedy with consecutive '<' (less than)

I stumbled upon this weird behaviour of DOpus.Output : when you feed him multiple consecutive < symbols, it tends to eat some of them (depending on the number of consecutive symbols).
1 & 2 => 1
3 & 4 => 2
5 & 6 => 3
7 & 8 => 4

basically you get floor((n+1)/2) symbols for n as an input.

To see it in action :

	var inf = "";
	for (var i = 1; i < 10; i++) {
		inf += "<";
		DOpus.Output("Inf (" + i + ") [size=" + inf.length + "] = " + inf);
	}

and its result :

 27/07/2024 16:36 GenericTestCommand:  Inf (1) [size=1] = <
 27/07/2024 16:36 GenericTestCommand:  Inf (2) [size=2] = <
 27/07/2024 16:36 GenericTestCommand:  Inf (3) [size=3] = <<
 27/07/2024 16:36 GenericTestCommand:  Inf (4) [size=4] = <<
 27/07/2024 16:36 GenericTestCommand:  Inf (5) [size=5] = <<<
 27/07/2024 16:36 GenericTestCommand:  Inf (6) [size=6] = <<<
 27/07/2024 16:36 GenericTestCommand:  Inf (7) [size=7] = <<<<
 27/07/2024 16:36 GenericTestCommand:  Inf (8) [size=8] = <<<<
 27/07/2024 16:36 GenericTestCommand:  Inf (9) [size=9] = <<<<<

No issue with greater than ..

I don't know if this is related to some interpolation of some of the html that can be embedded in (with coloring, boldness, breakline ...), but please don't remove that (undocumented ?) feature !!

That’s by design, as the output window supports several HTML-style tags that start with <

1 Like

OK, thanks for the answer.