Skip to content

Instantly share code, notes, and snippets.

@ulope
Created December 7, 2010 11:53
Show Gist options
  • Save ulope/731716 to your computer and use it in GitHub Desktop.
Save ulope/731716 to your computer and use it in GitHub Desktop.
diff --git a/docs/custom_plugins.rst b/docs/custom_plugins.rst
index 31ba3c5..d3ee68e 100644
--- a/docs/custom_plugins.rst
+++ b/docs/custom_plugins.rst
@@ -254,7 +254,8 @@ In your yourapp.cms_plugin_processors.py::
This plugin processor wraps each plugin's output in a colored box if it is in the "main" placeholder.
'''
if placeholder.slot != 'main' \ # Plugins not in the main placeholder should remain unchanged
- or instance._render_meta.text_enabled: # Plugins embedded in Text should remain unchanged in order not to break output
+ or (instance._render_meta.text_enabled # Plugins embedded in Text should remain unchanged in order not to break output
+ and instance.parent):
return rendered_content
else:
from django.template import Context, Template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment