Bug 40933
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@520 6955db30-a419-402b-8a0d-67ecbb4d7f56master
parent
b73d2db867
commit
39a77639d5
|
@ -84,6 +84,7 @@ use File::Basename;
|
|||
LIST_OF_BUGS
|
||||
|
||||
COMMENT_COLS
|
||||
MAX_TABLE_COLS
|
||||
MAX_COMMENT_LENGTH
|
||||
|
||||
CMT_NORMAL
|
||||
|
@ -273,6 +274,7 @@ use constant LIST_OF_BUGS => 1;
|
|||
|
||||
# The column length for displayed (and wrapped) bug comments.
|
||||
use constant COMMENT_COLS => 80;
|
||||
use constant MAX_TABLE_COLS => 200;
|
||||
# Used in _check_comment(). Gives the max length allowed for a comment.
|
||||
use constant MAX_COMMENT_LENGTH => 65535;
|
||||
|
||||
|
|
|
@ -388,7 +388,7 @@ sub wrap_comment
|
|||
if ($line !~ /^>/so)
|
||||
{
|
||||
my $n = scalar($line =~ s/(\t+)/$1/gso);
|
||||
if ($n > 1 && length($line) < 200)
|
||||
if ($n > 1 && length($line) < MAX_TABLE_COLS)
|
||||
{
|
||||
# Table
|
||||
$table = Text::TabularDisplay::Utf8->new;
|
||||
|
|
Loading…
Reference in New Issue