diff options
author | Byron Jones <bjones@mozilla.com> | 2012-10-25 13:41:12 -0400 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-10-25 13:41:12 -0400 |
commit | c83f4b9eff635f618daf14cb04a91a265b1915d9 (patch) | |
tree | 9b9da6bf81658da0f8e7ab121c616081e22134c6 /Bugzilla/Util.pm | |
parent | d0bd2aaeb6bf3165af757f1fc71e2ea3fc1e08f4 (diff) | |
download | bugs-c83f4b9eff635f618daf14cb04a91a265b1915d9.tar bugs-c83f4b9eff635f618daf14cb04a91a265b1915d9.tar.gz bugs-c83f4b9eff635f618daf14cb04a91a265b1915d9.tar.bz2 bugs-c83f4b9eff635f618daf14cb04a91a265b1915d9.tar.xz bugs-c83f4b9eff635f618daf14cb04a91a265b1915d9.zip |
Bug 772359: LogActivityEntry shouldn't remove any characters from the field when splitting long lines; and delimiters need to be inserted when joining split entries
r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Util.pm')
-rw-r--r-- | Bugzilla/Util.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index 7fc9ca6d8..197a81af4 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -447,11 +447,11 @@ sub find_wrap_point { if (!$string) { return 0 } if (length($string) < $maxpos) { return length($string) } my $wrappoint = rindex($string, ",", $maxpos); # look for comma - if ($wrappoint < 0) { # can't find comma + if ($wrappoint <= 0) { # can't find comma $wrappoint = rindex($string, " ", $maxpos); # look for space - if ($wrappoint < 0) { # can't find space + if ($wrappoint <= 0) { # can't find space $wrappoint = rindex($string, "-", $maxpos); # look for hyphen - if ($wrappoint < 0) { # can't find hyphen + if ($wrappoint <= 0) { # can't find hyphen $wrappoint = $maxpos; # just truncate it } else { $wrappoint++; # leave hyphen on the left side |