diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2002-04-25 20:59:50 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2002-04-25 20:59:50 +0000 |
commit | 75d4c15f0725d9d730d44713b4c1346b40b88adb (patch) | |
tree | f712400a98f18770a8c4cb372ccb00b0e8be613a /modules/comment | |
parent | ea6682bb2334d4e0d0cf3702d697a0d78e075a14 (diff) | |
download | brdo-75d4c15f0725d9d730d44713b4c1346b40b88adb.tar.gz brdo-75d4c15f0725d9d730d44713b4c1346b40b88adb.tar.bz2 |
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.
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.module | 8 |
1 files changed, 6 insertions, 2 deletions
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 "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td width=\"". ($level * 25) ."\"> </td><td>\n"; + if ($level) { + print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td width=\"". ($level * 25) ."\"> </td><td>\n"; + } comment_view($comment, comment_links($comment, 0)); - print "</td></tr></table>\n"; + if ($level) { + print "</td></tr></table>\n"; + } comment_thread_max($comments, $threshold, $comment->cid, $level + 1); } |