Would putting something such as this in the css work? If so where would I insert it?
Code:div { width: 50px; word-wrap: break-word; display: table-cell; }
Would putting something such as this in the css work? If so where would I insert it?
Code:div { width: 50px; word-wrap: break-word; display: table-cell; }
I just checked the admin order page, and it has attribute elements contained in <nobr> elements, which is a deprecated (obsolete?) tag that forbids its content from breaking to a new line. I haven't found a CSS way to overcome that yet. It may need to be altered in the PHP file (and should be, for the future).
I haven't investigated order comments or e-mails yet.
I edited /admin/orders.php and replaced <nobr> and </nobr> with <span class="nobr"> and </span> in three places, lines 565, 568 and 977.
Now orders with long text attribute strings wrap to fit the space available, and apparently preserve line breaks entered in the text. I have seen no errors at this point.
I would suggest investigating the appropriate files for other instances of the no-wrap behavior per the OP to see if they can be treated similarly.
A search in the Developers Toolkit shows "nobr" in /admin/invoice.php (lines 170 & 173), /admin/packingslip.php (lines 154 & 155) and /includes/classes/order.php (line 876), as well as paypal files which I don't want to touch unless experience shows a need to.
/includes/classes/order.php is responsible for sending the order confirmation e-mail, so that would probably be the target file for the OP concern.
I found the answer to this. In email/email_template_checkout.html
I changed
toCode:body {color:#000000; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center}
This fixed the html email to have word wrap on the email receipt unless they write an essay without spaces.Code:body {color:#000000; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center; width: 40px}
40px is an unreasonably narrow width - about equal to 5 or 6 letters wide depending on font size. 40em would be around 40 to 60 characters wide depending on the characters and the font.