From f596ca39e596e8880fa9f5c9f8d550c13ddd6dd3 Mon Sep 17 00:00:00 2001
From: Alex Schroeder
Date: Thu, 14 Jul 2005 10:37:51 +0000
Subject: [PATCH] (DynamicCommentsNewGetPageLink): Make sure p and div elements
are correctly nested.
---
modules/dynamic-comments.pl | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/dynamic-comments.pl b/modules/dynamic-comments.pl
index b544595f..488c63b1 100644
--- a/modules/dynamic-comments.pl
+++ b/modules/dynamic-comments.pl
@@ -16,7 +16,7 @@
# 59 Temple Place, Suite 330
# Boston, MA 02111-1307 USA
-$ModulesDescription .= '$Id: dynamic-comments.pl,v 1.4 2005/07/13 19:54:08 as Exp $
';
+$ModulesDescription .= '$Id: dynamic-comments.pl,v 1.5 2005/07/14 10:37:51 as Exp $
';
$DefaultStyleSheet .= qq{
div.commenthidden { display:none; }
@@ -52,9 +52,11 @@ sub DynamicCommentsNewGetPageLink {
my $page = PageHtml($id);
if ($page) {
return qq{$title}
+ . '
' # close p before opening div
. $q->div({-class=>commenthidden, -id=>$id},
$page,
- DynamicCommentsOldGetPageLink($id, T('Add Comment')));
+ $q->p(DynamicCommentsOldGetPageLink($id, T('Add Comment'))))
+ . ''; # open an empty p that will be closed in PrintAllPages
} else {
return DynamicCommentsOldGetPageLink($id, T('Add Comment'));
}