Skip to content

Commit

Permalink
NBSP before ID display
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Nov 23, 2017
1 parent 38dc1ef commit 2f97834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasette/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ async def make_display_rows(self, database, database_hash, table, rows, display_
other_table, label = expanded[(column, value)]
display_value = jinja2.Markup(
# 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>&nbsp;<em>{id}</em>'.format(
database=database,
database_hash=database_hash,
table=escape_sqlite_table_name(other_table),
Expand Down

1 comment on commit 2f97834

@simonw
Copy link
Owner Author

@simonw simonw commented on 2f97834 Nov 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before:

conventional_power_plants_eu__conventional_power_plants_eu

After:

conventional_power_plants_eu__conventional_power_plants_eu

Please sign in to comment.