summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-02-10 02:30:17 +0100
committertravis%sedsystems.ca <>2005-02-10 02:30:17 +0100
commit6db4590f9bc598179bbed35b66a3e583a04984c0 (patch)
tree59be5eafc7bb24cc931fcdf3b960c7d7830db935 /globals.pl
parent6a20f783538986e8caf60b31a659248dd552f63f (diff)
downloadbugzilla-6db4590f9bc598179bbed35b66a3e583a04984c0.tar.gz
bugzilla-6db4590f9bc598179bbed35b66a3e583a04984c0.tar.xz
Bug 11901 : Change Bugzilla comments line-wrapping policy
Patch by Max Kanat-Alexander <mkanat@kerio.com> r=gerv,justdave a=justdave
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl8
1 files changed, 5 insertions, 3 deletions
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++;
}