Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#13412 from AUTOMATIC1111/data-sort-n…
Browse files Browse the repository at this point in the history
…ame-fix

Fix data-sort-name containing spaces
  • Loading branch information
AUTOMATIC1111 authored Sep 30, 2023
2 parents ad3b8a1 + a69daae commit 8a75838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ui_extra_networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def create_html_for_item(self, item, tabname):
if search_only and shared.opts.extra_networks_hidden_models == "Never":
return ""

sort_keys = " ".join([html.escape(f'data-sort-{k}={v}') for k, v in item.get("sort_keys", {}).items()]).strip()
sort_keys = " ".join([f'data-sort-{k}="{html.escape(str(v))}"' for k, v in item.get("sort_keys", {}).items()]).strip()

args = {
"background_image": background_image,
Expand Down

0 comments on commit 8a75838

Please sign in to comment.