Correctly display empty strings in HTML table, closes #314

This commit is contained in:
Simon Willison 2018-06-21 08:26:18 -07:00
commit e843ce26e5
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
2 changed files with 4 additions and 4 deletions

View file

@ -182,7 +182,7 @@ class RowTableShared(BaseView):
id=str(jinja2.escape(value)),
label=str(jinja2.escape(label)),
))
elif value is None:
elif value in ("", None):
display_value = jinja2.Markup(" ")
elif is_url(str(value).strip()):
display_value = jinja2.Markup(