diff markup/template.py @ 37:37557b8fb925 trunk

Moved some of the tests for the strip directive to a new unittest test case to not clutter up the documentation.
author cmlenz
date Sun, 02 Jul 2006 23:10:27 +0000
parents ed370ebfa794
children ee669cb9cccc
line wrap: on
line diff
--- a/markup/template.py
+++ b/markup/template.py
@@ -470,26 +470,7 @@
       <b>foo</b>
     </div>
     
-    On the other hand, when the attribute evaluates to `False`, the element is
-    not stripped:
-    
-    >>> tmpl = Template('''<div xmlns:py="http://purl.org/kid/ns#">
-    ...   <div py:strip="False"><b>foo</b></div>
-    ... </div>''')
-    >>> print tmpl.generate()
-    <div>
-      <div><b>foo</b></div>
-    </div>
-    
-    Leaving the attribute value empty is equivalent to a truth value:
-    
-    >>> tmpl = Template('''<div xmlns:py="http://purl.org/kid/ns#">
-    ...   <div py:strip=""><b>foo</b></div>
-    ... </div>''')
-    >>> print tmpl.generate()
-    <div>
-      <b>foo</b>
-    </div>
+    Leaving the attribute value empty is equivalent to a truth value.
     
     This directive is particulary interesting for named template functions or
     match templates that do not generate a top-level element:
Copyright (C) 2012-2017 Edgewall Software