Sublime Forum

V 4152 draw_unicode_white_space problem

#1

Hi,

After the last update (4152) "draw_unicode_white_space": false, in the settings doesn’t work anymore and is resulting in showing unicode from Microsoft Word again in my text.

Any solution?

Thanks,

David

0 Likes

#2

false has never been a valid value for that setting. See the documentation for "draw_unicode_white_space" on valid values.

0 Likes

#3

It worked for years! But thanks for pointing me to the documentation instead of helping me!!!
Again my yearly payments for sublime Text really reflex in “outstanding support”!
:unamused:

0 Likes

#4

It worked for years!

I don’t see how that’s possible. In response to your first comment I looked at the code to check if we ever supported false and we haven’t. "draw_unicode_white_space" was first shipped publicly in build 4107 and it didn’t support false as a valid value then and that hasn’t changed since.

But thanks for pointing me to the documentation instead of helping me!!!

How is that not helping? I diagnosed the issue as an invalid settings value and gave you direction for where to find the right values. Do you want me to paste the documentation as well?

	// Controls how non-ascii white space is drawn.
	// - "none": Draw unicode white space verbatim, eg. hiding zero-width
	//           spaces.
	// - "punctuation": Draw codepoints of unicode white space defined as
	//                  punctuation. This includes NBSP, but excludes the CJK
	//                  Ideographic Space.
	// - "all": Draw codepoints of all non-ascii space characters.
	"draw_unicode_white_space": "punctuation",
4 Likes

#5

I just checked builds 4143 and 4107 and I’ve figured out what’s happened here. Previously "draw_unicode_white_space" had a hard-coded default that did not match the base settings file. As such when it’s set to an invalid value it would be disabled instead being set to "punctuation" as it should.

That’s why "draw_unicode_white_space": false “worked” previously. "draw_unicode_white_space": true also disabled drawing unicode white space.

4 Likes