mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
NBSP before ID display
This commit is contained in:
parent
38dc1ef73b
commit
2f97834d0e
1 changed files with 1 additions and 1 deletions
|
|
@ -626,7 +626,7 @@ class TableView(BaseView):
|
||||||
other_table, label = expanded[(column, value)]
|
other_table, label = expanded[(column, value)]
|
||||||
display_value = jinja2.Markup(
|
display_value = jinja2.Markup(
|
||||||
# TODO: Escape id/label/etc so no XSS here
|
# TODO: Escape id/label/etc so no XSS here
|
||||||
'<a href="/{database}-{database_hash}/{table}/{id}">{label}</a> <em>{id}</em>'.format(
|
'<a href="/{database}-{database_hash}/{table}/{id}">{label}</a> <em>{id}</em>'.format(
|
||||||
database=database,
|
database=database,
|
||||||
database_hash=database_hash,
|
database_hash=database_hash,
|
||||||
table=escape_sqlite_table_name(other_table),
|
table=escape_sqlite_table_name(other_table),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue