[PATCH] textarea formatting problems in TracNotification
|Reported by:||Owned by:|
|Severity:||normal||Keywords:||patch notification email|
When the contents of a custom field of type "textarea" is changed, the email from TracNotification is very oddly formatted. The problem is aggravated when the name of the custom field is very long.
The attached image (textarea_email_formatting_problem.png) highlights the problem.
- The first line of a textarea custom field will in some cases extended beyond the maximum 75 chars that TracNotification attempts to adhere to.
- subsequent lines are needlessly limited in their available width. They are short-changed by 7 chars + len(name of custom field). The longer the field name, the narrower the subsequent lines.
- lines preceded by newlines are given the proper width, but aren't indented.
I've attached a patch that I believe properly resolves this issue. I've also attached a screenshot of the email after the patch is applied (textarea_email_formatting_after_patch.png).