Commit 08680add authored by Simon Green's avatar Simon Green

Bug 916633 - join_activity_entries doesn't reconstitute text with commas correctly.

r=glob, a=sgreen
parent 3d9a1253
......@@ -496,8 +496,9 @@ sub join_activity_entries {
return $current_change . $new_change;
}
# All other fields get a space
if (substr($new_change, 0, 1) eq ' ') {
# All other fields get a space unless the first character of the second
# string is a comma or space
if (substr($new_change, 0, 1) eq ',' || substr($new_change, 0, 1) eq ' ') {
return $current_change . $new_change;
} else {
return $current_change . ' ' . $new_change;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment