diff --git a/src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php b/src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php index 52dde106eb..5f25391421 100644 --- a/src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php +++ b/src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php @@ -403,25 +403,29 @@ final class DifferentialChangesetTwoUpRenderer $html_old = array(); $html_new = array(); - foreach ($this->getOldComments() as $comment) { - $comment_html = $this->renderInlineComment($comment, $on_right = false); - $html_old[] = - ''. - ''. - ''.$comment_html.''. - ''. - ''. - ''; + foreach ($this->getOldComments() as $on_line => $comment_group) { + foreach ($comment_group as $comment) { + $comment_html = $this->renderInlineComment($comment, $on_right = false); + $html_old[] = + ''. + ''. + ''.$comment_html.''. + ''. + ''. + ''; + } } - foreach ($this->getNewComments() as $comment) { - $comment_html = $this->renderInlineComment($comment, $on_right = true); - $html_new[] = - ''. - ''. - ''. - ''. - ''.$comment_html.''. - ''; + foreach ($this->getNewComments() as $lin_line => $comment_group) { + foreach ($comment_group as $comment) { + $comment_html = $this->renderInlineComment($comment, $on_right = true); + $html_new[] = + ''. + ''. + ''. + ''. + ''.$comment_html.''. + ''; + } } if (!$old) {