The previous commit assumes that the filter will always be a Markup
type, which is not correct.
rv += u'\n' + u'\n'.join(
indention + line if line else line for line in lines
)
- # Unescape any strings that were escaped due to concatenation
- rv = Markup(rv.unescape())
+ try:
+ # Unescape any strings that were escaped due to concatenation
+ rv = Markup(rv.unescape())
+ except AttributeError:
+ # s was not a Markup instance
+ pass
if first:
rv = indention + rv