[Text]: indentation with spaces not working correctly with unicode characters (Windows-only)

Rivanni's icon

Items stored in an [Text] object that start with one or more spaces followed by a Unicode character are not displayed properly in the popup window.

When you select the text in the popup, you see the spaces at the end of the previous line. However, you cannot move them down using 'Enter'.

In the image below, the lines with diamonds and squares should be indented.

As you can see, displaying the Unicode characters is not a problem.

When you copy and paste the text from the popup into any text editor, it appears as it should.

The text is also displayed correctly in the Max console.

It's only the [Text] popup that is displaying spaces incorrectly.

I haven't encountered the issue described above on macOS 14.5.

A small code example to reproduce the issue.

Max Patch
Copy patch and select New From Clipboard in Max.

{
	"version" : "Version 8.6.2 (3191a3ea3ac) (x64 windows)",
	"platform" : "windows",
	"arch" : "x64",
	"osversion" : "Microsoft Windows 11 Professional (build 22631), 64-bit",
	"samplerate" : 44100,
	"iovs" : 64,
	"sigvs" : 64,
	"scheduler_in_audio_interrupt" : "off",
	"audio_drivername" : "Live",
	"audio_driver_subname" : "",
	"license" : "mfl",
	"eventinterval" : 2,
	"schedinterval" : 1.0,
	"overdrive" : "on",
	"pollthrottle" : 40,
	"queuethrottle" : 100,
	"sysqelemthrottle" : 1000,
	"refreshrate" : 30.0,
	"schedslop" : 25.0,
	"eventprobing" : 0,
	"mixerparallel" : "off",
	"mixercrossfade" : 0,
	"mixerlatency" : 30.0,
	"mixerramptime" : 10.0,
	"videoengine" : "qt",
	"gfxengine" : "glcore",
	"packages" : 	{
		"BEAP" : "1.0.4",
		"CNMAT Externals" : "1.0.5",
		"gl3" : "0.3.3",
		"jit.mo" : "1.1.6",
		"Jitter Tools" : "1.0.10",
		"jk.push 2" : "2.0.3",
		"Max for Live" : "1.0.9",
		"Max for Live Research" : "1.0.7",
		"max-mxj" : "8.2.0",
		"maxforlive-elements" : "1.0.10",
		"Mira" : "1.2.1",
		"Node for Max" : "2.1.3",
		"RivannisExample" : "",
		"RNBO" : "1.2.6",
		"VIDDLL" : "",
		"Virtual Sound Macros" : "",
		"Vizzie" : "2.2.2"
	}

}

Source Audio's icon

max 8.5 7 worked ok,

since 8.6 and up text object is buggy on windows.

If you can't revert to 8.5.7, as a temporary fix

you could insert

sprintf symout \"%s\"

which then makes them look same on both platforms

Rivanni's icon

Thanks.

But this introduces double quotes. It's not something I want.

Since you say this is a known bug for a while, I'm going to look for other, non-Unicode symbols. That's the easiest solution that works in all Max versions.