# HG changeset patch
# User Paul Boddie <paul@boddie.org.uk>
# Date 1296938752 -3600
# Node ID 10dc0763b79b05e1a861e7aa303016f6b7ab2b55
# Parent  fb521bcd610f8a096d1e72905f19f922e5d8eca2
Introduced a container around included pages in order to permit improved
positioning of the page-related links.

diff -r fb521bcd610f -r 10dc0763b79b MoinMoin/macro/Include.py
--- a/MoinMoin/macro/Include.py	Sat Feb 05 01:14:02 2011 +0100
+++ b/MoinMoin/macro/Include.py	Sat Feb 05 21:45:52 2011 +0100
@@ -200,6 +200,9 @@
         this_page._macroInclude_pagelist[inc_name] = \
             this_page._macroInclude_pagelist.get(inc_name, 0) + 1
 
+        # output a container for the included page
+        result.append(macro.formatter.div(1, css_class="included-page"))
+
         # output the included page
         strfile = StringIO.StringIO()
         request.redirect(strfile)
@@ -228,6 +231,9 @@
             ])
         # XXX page.link_to is wrong now, it escapes the edit_icon html as it escapes normal text
 
+        # close the container for the included page
+        result.append(macro.formatter.div(0))
+
     # return include text
     return ''.join(result)
 
