This fragment of basic macro sets the text colour to blue, writes “hello” at the text cursor, then writes “world”. If there is a newline (sCR) at the end of the first, or the start of the second output, the colour reverts to black. Is this expected behaviour, or a bug?
oTCurs.charColor = &H0000ff
otext.insertstring(oTCurs, " hello", False)
otext.insertstring(oTCurs, sCR & " world" & sCR, False)
LO 7.3.5.2 Ubuntu 22.04