#80 closed defect (fixed)
<xi:fallback> content always shown
Reported by: | cboos | Owned by: | cmlenz |
---|---|---|---|
Priority: | major | Milestone: | 0.4 |
Component: | Template processing | Version: | devel |
Keywords: | xi:include xi:fallback | Cc: |
Description
With latest trunk (r462), I've noticed that the <xi:fallback> content is always shown, regardless of whether the <xi:include> target was found or not.
This is visible e.g. in Trac's report template.
Attachments (3)
Change History (7)
Changed 18 years ago by cboos
comment:1 Changed 18 years ago by cboos
With attachment:fix_xi_fallback-r462.diff, the problem is solved, i.e. the first unit test added in attachment:unit_test_xi_fallback-r462.diff now succeeds and my original issue with Trac's Report template is also fixed. All the other unit-tests still pass.
comment:2 Changed 18 years ago by cboos
- Version changed from 0.3.3 to devel
comment:3 Changed 18 years ago by cmlenz
- Status changed from new to assigned
Thanks for the patches!
comment:4 Changed 18 years ago by cmlenz
- Resolution set to fixed
- Status changed from assigned to closed
Should be fixed in [463]. I expanded your patch a bit so that we can now support nested fallback content.
Unit-test demonstrating the issue