Fix bug with when using Markup on ChainableUndefined
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Wrapping a ChainableUndefined object with Markup causes an UndefinedError because Markup thinks that ChainableUndefined has an attribute called __html__ and tries to call it. This commit fixes this by defining a method __html__ that calls ChainableUndefined.__str__. We also add a regression test.
authored by Laurence de Bruxelles · committed by David Lord · parent e68d9b8 · Browse files · 2 files+12 added−4 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+12 added−4 removed
- tests:+5 added−0 removed
- other:+7 added−4 removed