mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Correctly display empty strings in HTML table, closes #314
This commit is contained in:
parent
120f20cd97
commit
e843ce26e5
2 changed files with 4 additions and 4 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue