theme_comment_wrapper creates an empty div when there are no comments. Remove the empty div. I am using the following change on one site in 5.0.
From:
function theme_comment_wrapper($content) {
return '<div id="comments">' . $content . '</div>';
}
to:
function theme_comment_wrapper($content) {
if(trim($content) == '')
{
return '';
}
return '<div id="comments">' . $content . '</div>';
}
Comments
Comment #1
Zen commentedConfirmed. Please submit your change in patch form. Please also search drupal.org for code style guidelines (or follow examples from core) and clean up your patch prior to submitting.
Thanks Peter :)
-K
Comment #2
dmitrig01 commentedyup
Comment #3
dpearcefl commentedIs there any interest in pursuing this issue?
Comment #4
handrus commentedThis is already fixed on D6.
What is the point in the version chosen there? By the comments it sounds like it was opened on version 5.
comment.module - line 1053
Closing it.