Sort grid items properly

Supersedes #21856.
This commit is contained in:
Chocobo1
2024-12-14 02:53:01 +08:00
parent c887a6f7d8
commit 0a36171999
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()