Skip to content

fix(docs,tools): fix markdown links and unclosed code fence, pin newline in text writers - #9606

Closed
champagneluv wants to merge 1 commit into
ProjectLeonida:mainfrom
champagneluv:fix/docs-links-and-text-writers
Closed

champagneluv wants to merge 1 commit into
ProjectLeonida:mainfrom
champagneluv:fix/docs-links-and-text-writers

Conversation

@champagneluv

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: #9522 (comment)

What and why

Fixes two test failures currently failing in repo suites:

  1. tests/test_text_write_line_endings.py:

    • tools/leonida_tui.py: added newline="\n" when opening the stage console log file.
    • tools/wave_diff.py: added newline="\n" in _write().
  2. tests/test_docs_links.py:

    • runtime/README.md: closed an unclosed ```powershell block right before ### 1D render targets and depth buffers. The unclosed fence was hiding subsequent markdown headings from the anchor extractor, causing relative anchors to fail.
    • docs/gpu_test_results.md: fixed relative link gpu-test-results/RX9070GRE.txt to ../gpu-test-results/RX9070GRE.txt.

Tested

  • python -I tests/test_text_write_line_endings.py (3 tests passed)
  • python -I tests/test_docs_links.py (7 tests passed)
  • python -I tests/test_wave_diff.py (12 tests passed)
  • python -I scripts/check_no_game_data.py docs/gpu_test_results.md runtime/README.md tools/leonida_tui.py tools/wave_diff.py (passed)

AI-assisted: yes (Antigravity)

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.

@catminou4

Copy link
Copy Markdown
Contributor

Tested 6cbcf3c on macOS 26 arm64, Python 3.12, CPU only, no game files: pass. python -I tests/test_text_write_line_endings.py, tests/test_docs_links.py, tests/test_wave_diff.py — all OK. The fence fix, the ../gpu-test-results/ link and the two newline="\n" writes each address a real failure on main. Note the fence repair overlaps #8169/#7532/#7351 and the line-ending part overlaps #9300 — whichever lands first, the rest need a rebase. AI-assisted (Devin).

@OlaiFG7

OlaiFG7 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Reviewed 6cbcf3c, code read (CPU), AI-assisted: no functional issue found; text-write, docs-link and wave-diff tests pass on Windows, as do targeted compileall, diff check and no-game-data scan. Reverting the four changes makes the text-write and docs-link checks fail as expected. The same writer changes are in open #8335; the docs fixes overlap #8169 (and #8321 for the link).

@Nevrche

Nevrche commented Nov 23, 2026

Copy link
Copy Markdown

Tested 6cbcf3c6e on Windows 10 Pro 22H2 (10.0.19045), Python 3.14.6, PowerShell 5.1: pass.

  • python -I tests/test_text_write_line_endings.py → Ran 3 tests in 23.893s — OK
  • python -m compileall -q make_game.py tools tests → exit 0, no output
  • python -I tests/test_docs_links.py → Ran 7 tests in 1.997s — OK
  • python -I tests/test_docs_list_items.py → Ran 3 tests in 0.486s — OK

So the two newline="\n" writers and the README fence both pass on Windows, where the line-ending default is the one that would break. No GPU work involved. AI-assisted.

@KoertLichtendonk

Copy link
Copy Markdown
Contributor

Coordinator note: this looks like the same change as #9097 by @THEHOLYMKDEV (opened 20:09 UTC, still open). Please compare the two and either close this one or say here what it adds. The maintainer decides which one is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants