linefeeds dialogboxes

Would it be possible to do an automatic linefeed in a dialog box.

When I have a dialog with a variable string (can be up to 50 characters long) I don’t know on forehand where to break the line…

Can you buld such a thing in, possibly in line with the different os-es standard boxes?

do you mean these kinds of dialogs?

plugins.dialogs.showInfoDialog( ‘The Title’, 'Text, ‘OK’)

and then the text part?
that one won’t do a line feed. If you put in a long text it will display that long text by making the dialog wider and wider.

you can do this:

plugins.dialogs.showInfoDialog( ‘The Title’, ‘THIS IS A VERY LONG PIECE OF TEXT THAT MUST GO ON FOR A BIT MORE
THIS IS A VERY LONG PIECE OF TEXT THAT MUST GO ON FOR A BIT MORE’, ‘OK’)