edgewall / genshi

Python toolkit for generation of output for the web
http://genshi.edgewall.org
Other
86 stars 35 forks source link

choose directive must be sorted before when and otherwise #45

Closed cedk closed 3 months ago

cedk commented 3 years ago

Following the #44, if choose and when directive ends up in the same directive list, choose must be ordered first.

hodgestar commented 3 years ago

@cedk Thanks for reporting this. Could you add a small test that shows why / when choose needs to be sorted first?

cedk commented 3 years ago

I do not think I will have time for that anytime soon.

hodgestar commented 3 years ago

@cedk Could you at least explain why choose should be sort before when?

cedk commented 3 years ago

Because when is a "sub-directive" that can only be used inside a when.

udono commented 2 years ago

Because when is a "sub-directive" that can only be used inside a when.

I think you mean: Because when is a "sub-directive" that can only be used inside a choose directive.

hodgestar commented 3 months ago

Closing this as inactive. Happy to re-open again if someone offers a failing test.