Bug 40933
Idempotent wrap_comment git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@299 6955db30-a419-402b-8a0d-67ecbb4d7f56master
parent
355c0ce2bf
commit
dcb05ff81d
|
@ -352,9 +352,9 @@ sub wrap_comment
|
|||
my $wrappedcomment = "";
|
||||
|
||||
$cols ||= COMMENT_COLS;
|
||||
$cols++;
|
||||
$cols-=2;
|
||||
my $re = qr/^(.{0,$cols}(\s(?=\S)|\S(?=\s)))/s;
|
||||
$cols--;
|
||||
$cols+=2;
|
||||
|
||||
foreach my $line (split /\r\n?|\n/, $comment)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue