TextEditor not underlining spaces using insertTextAtCaret


The following code:

editor.setFont(Font(20, Font::underlined));
editor.insertTextAtCaret("Testing 12 3  4 5 56 6");

Produces the following output:

Is there something I need to set in order to underline spaces or is this some sort of bug?
Thanks a lot.

Yeah, I guess that’s a mistake. I’ll look at it when I get chance.

Ok. Thanks!