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.
4.0.x
Steven Wittens 2002-04-25 20:59:50 +00:00
parent ea6682bb23
commit 75d4c15f07
2 changed files with 12 additions and 4 deletions

View File

@ -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) ."\">&nbsp;</td><td>\n";
if ($level) {
print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td width=\"". ($level * 25) ."\">&nbsp;</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);
}

View File

@ -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) ."\">&nbsp;</td><td>\n";
if ($level) {
print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td width=\"". ($level * 25) ."\">&nbsp;</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);
}