diff options
author | travis%sedsystems.ca <> | 2005-02-10 01:30:17 +0000 |
---|---|---|
committer | travis%sedsystems.ca <> | 2005-02-10 01:30:17 +0000 |
commit | 6db4590f9bc598179bbed35b66a3e583a04984c0 (patch) | |
tree | 59be5eafc7bb24cc931fcdf3b960c7d7830db935 /globals.pl | |
parent | 6a20f783538986e8caf60b31a659248dd552f63f (diff) | |
download | bugs-6db4590f9bc598179bbed35b66a3e583a04984c0.tar bugs-6db4590f9bc598179bbed35b66a3e583a04984c0.tar.gz bugs-6db4590f9bc598179bbed35b66a3e583a04984c0.tar.bz2 bugs-6db4590f9bc598179bbed35b66a3e583a04984c0.tar.xz bugs-6db4590f9bc598179bbed35b66a3e583a04984c0.zip |
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.pl | 8 |
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++; } |