Make sure wrapped text fits in the dialog boxes

When we wrap text to create a paragraph and print it in a dialog box,
make sure the lines will not get wrapped further by the dialog box.