Red Hat Bugzilla – Bug 457675
Long bug comments don't wrap in bugzilla 3.2 in show_bug.cgi/post_bug.cgi
Last modified: 2013-06-23 22:19:17 EDT
in bugzilla 3.2 when adding a comment to a bug, the comment doesn't wrap if it is too long.
Do you have a URL or any steps to reproduce for that?
It's definitely not a problem upstream.
Ping Noura. Can you post a test case to reproduce this?
Basically in any bug like this one for example, type long word with no line breaks and it will not wrap when you commit like this:
Is the above word wrapped in your screen?
This is because the bug comment template is using Bugzilla::Util::wrap_comment which uses Text::Wrap. The default behaviour for Text::Wrap is to wrap on word boundaries such as spaces, newlines, tabs, etc. and also to wrap when the $columns value is reached which would have broken up the text properly. But
Bugzilla::Util::wrap_comment is overriding the default by setting $Text::Wrap::huge to 'overflow' which means it will not break up long words.
So I am not sure we can fix this issue unless we add a Red Hat change to the function and set 'overflow' back to 'wrap'. This could cause problems with comments that are cut and pasted logs, dumps, traces, where the user may want
the original format of the text retained. I admit that it doesn't look very nice
but I vote we stay with the upstream on this one.
OKay I vote we stay with upstream as well, also no one really complained about it so i will close the bug.