Skip to content

Commit 1e92523

Browse files
committed
Close section can also yield the result of rendering the plugin
1 parent 5020744 commit 1e92523

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

feincms3/renderer.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,7 @@ def handle_default(self, plugins, context):
296296
yield self.render_plugin(plugin, context)
297297

298298
def handle___close_section__(self, plugins, context):
299-
# Internal helper which discards superfluous CLOSE_SECTION plugins
300-
# This method assumes that we're working in a string/HTML context and
301-
# therefore yields an empty string.
302-
plugins.popleft()
303-
yield ""
299+
yield self.render_plugin(plugins.popleft(), context)
304300

305301
def render_region(self, *, region, contents, context):
306302
"""

0 commit comments

Comments
 (0)