From 6db4590f9bc598179bbed35b66a3e583a04984c0 Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Thu, 10 Feb 2005 01:30:17 +0000 Subject: Bug 11901 : Change Bugzilla comments line-wrapping policy Patch by Max Kanat-Alexander r=gerv,justdave a=justdave --- globals.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'globals.pl') diff --git a/globals.pl b/globals.pl index d793a4659..c3dde532f 100644 --- a/globals.pl +++ b/globals.pl @@ -970,7 +970,8 @@ sub GetLongDescriptionAsText { my $count = 0; my $anyprivate = 0; my ($query) = ("SELECT profiles.login_name, DATE_FORMAT(longdescs.bug_when,'%Y.%m.%d %H:%i'), " . - " longdescs.thetext, longdescs.isprivate " . + " longdescs.thetext, longdescs.isprivate, " . + " longdescs.already_wrapped " . "FROM longdescs, profiles " . "WHERE profiles.userid = longdescs.who " . "AND longdescs.bug_id = $id "); @@ -989,7 +990,8 @@ sub GetLongDescriptionAsText { $query .= "ORDER BY longdescs.bug_when"; SendSQL($query); while (MoreSQLData()) { - my ($who, $when, $text, $isprivate, $work_time) = (FetchSQLData()); + my ($who, $when, $text, $isprivate, $work_time, $already_wrapped) = + (FetchSQLData()); if ($count) { $result .= "\n\n------- Additional comment #$count from $who".Param('emailsuffix')." ". Bugzilla::Util::format_time($when) . " -------\n"; @@ -997,7 +999,7 @@ sub GetLongDescriptionAsText { if (($isprivate > 0) && Param("insidergroup")) { $anyprivate = 1; } - $result .= $text; + $result .= ($already_wrapped ? $text : wrap_comment($text)); $count++; } -- cgit v1.2.3-24-g4f1b