### Eclipse Workspace Patch 1.0 #P drupal Index: modules/comment/comment.module =================================================================== RCS file: /cvs/drupal/drupal/modules/comment/comment.module,v retrieving revision 1.494 diff -u -r1.494 comment.module --- modules/comment/comment.module 24 Oct 2006 20:31:25 -0000 1.494 +++ modules/comment/comment.module 9 Nov 2006 19:54:38 -0000 @@ -902,10 +902,13 @@ $divs++; $output .= '
'; } - else if ($comment->depth < $last_depth) { + + while ($comment->depth < $last_depth) { $divs--; $output .= '
'; + $last_depth--; } + $last_depth = $comment->depth; if ($mode == COMMENT_MODE_FLAT_COLLAPSED) {