How to force word wrap locations in labels?

How can line wraps or breaks in labels be forced?

For instance, text is automatically wrapped like this:

automatic word
wrap

while this is how I would like it:

automatic
word wrap

Code like < br > doesn't work in the label field.

It's mainly to prevent ugly labels where the second line has only a small remainder:

This label is an ugly
one

while:

This label is
a better one

Shift + enter allows entering new lines.

1 Like

Thank you for the quick reply.

I found out why Shift + enter didn't work in my session.

It was

white-space: normal;

in a label definition in the root which interprets line breaks as white space, not as code.

All is fine with now after changing it to 'white-space: pre-wrap;'