Bug 40933

Idempotent wrap_comment


git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@299 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2009-08-26 11:07:25 +00:00
parent 355c0ce2bf
commit dcb05ff81d
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{