Opened 16 years ago
Last modified 8 years ago
#269 new defect
py:strip in a py:if produces different output depending on tag's contents
Reported by: | felix.schwarz@… | Owned by: | cmlenz |
---|---|---|---|
Priority: | minor | Milestone: | 0.9 |
Component: | Expression evaluation | Version: | 0.5.1 |
Keywords: | Cc: |
Description
py:strip behaves inconsistently when used in a py:if "tag". The behavior depends on if a Genshi variable is accessed in the tag's contents.
<py:if test="True" py:strip=""> var x = 'bar'; </py:if>
-> This produces no output.
<py:if test="True" py:strip=""> var x = '$d'; </py:if>
-> This will output the variable's contents only ("var x = ..." is stripped).
Using py:if together with py:strip is stupid and probably always a programmer error but I expected that the final output would always be the same regardless of the tag's contents.
Attachments (1)
Change History (3)
Changed 16 years ago by felix.schwarz@…
comment:1 Changed 15 years ago by cmlenz
- Milestone changed from 0.6 to 0.7
comment:2 Changed 8 years ago by hodgestar
- Milestone changed from 0.7 to 0.9
Moved to milestone 0.9.
Note: See
TracTickets for help on using
tickets.
Testcase for the behavior