mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-24 12:49:03 -05:00
fix: keep schema rows readable by the floor python
This commit is contained in:
1 parent
14e3923533
commit
3609f66401
1 file changed
+3
-1
@@ -1869,7 +1869,9 @@ def _schema_field_rows(schema: dict, keys: tuple[str, ...]) -> list[str]:
|
||||
for key in keys:
|
||||
text = str((props.get(key) or {}).get("description") or "")
|
||||
if text:
|
||||
rows.append(f"| `{key}` | {_escape_tags(_URL_TEMPLATE.sub(r'`\g<0>`', text))} |")
|
||||
# Python before 3.12 refuses a backslash inside an f-string expression.
|
||||
described = _escape_tags(_URL_TEMPLATE.sub(r"`\g<0>`", text))
|
||||
rows.append(f"| `{key}` | {described} |")
|
||||
return rows
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user