Sort grid items properly

Supersedes #21856.
This commit is contained in:
Chocobo1 2024-12-14 02:53:01 +08:00
commit 0a36171999
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
13 changed files with 973 additions and 1246 deletions

View file

@ -82,6 +82,8 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
ret = re.sub('<(.+) +/>', r'<\1/>', ret)
if ret != orig:
print(f'Tip: run this script to apply the fix: `python {__file__} {filename}`', file=sys.stderr)
f.seek(0)
f.write(ret)
f.truncate()