Index: modules/comment/comment.module =================================================================== RCS file: /cvs/drupal/drupal/modules/comment/comment.module,v retrieving revision 1.509 diff -u -r1.509 comment.module --- modules/comment/comment.module 8 Dec 2006 16:16:30 -0000 1.509 +++ modules/comment/comment.module 8 Dec 2006 16:58:46 -0000 @@ -925,9 +925,12 @@ $divs++; $output .= '
'; } - else if ($comment->depth < $last_depth) { - $divs--; - $output .= '
'; + else { + while ($comment->depth < $last_depth) { + $divs--; + $output .= ''; + $last_depth--; + } } $last_depth = $comment->depth;