From 75d4c15f0725d9d730d44713b4c1346b40b88adb Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Thu, 25 Apr 2002 20:59:50 +0000 Subject: Cosmetic bugfix: Level 0 comments were still wrapped with a zero-width indentation table. Because the indentation-column contains a space, there was still a slight margin. --- modules/comment.module | 8 ++++++-- modules/comment/comment.module | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/comment.module b/modules/comment.module index aa4bcbb3b..6fd9793b8 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -449,9 +449,13 @@ function comment_thread_max($comments, $threshold, $pid = 0, $level = 0) { foreach ($comments as $comment) { if ($comment->pid == $pid) { - print "
 \n"; + if ($level) { + print "
 \n"; + } comment_view($comment, comment_links($comment, 0)); - print "
\n"; + if ($level) { + print "
\n"; + } comment_thread_max($comments, $threshold, $comment->cid, $level + 1); } diff --git a/modules/comment/comment.module b/modules/comment/comment.module index aa4bcbb3b..6fd9793b8 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -449,9 +449,13 @@ function comment_thread_max($comments, $threshold, $pid = 0, $level = 0) { foreach ($comments as $comment) { if ($comment->pid == $pid) { - print "
 \n"; + if ($level) { + print "
 \n"; + } comment_view($comment, comment_links($comment, 0)); - print "
\n"; + if ($level) { + print "
\n"; + } comment_thread_max($comments, $threshold, $comment->cid, $level + 1); } -- cgit v1.2.3