docs: escape pipe in design.md table and deduplicate README.md rows #164

Open
github-bot wants to merge 1 commit from github-bot/gh-164 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:32 UTC · original
ubiquitarianism:old-pr/9897 → main · +3 −5 · 2 files · 1 commits · draft

Carried over from old PR 9897 by neoisg8 in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9897, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
This branch conflicts with the current main and needs a rebase.
neoisg8: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Claimed in the coordination issue: https://github.com/ProjectLeonida/Leonida/issues/9677

Depends on: none.

What and why

tests/test_docs_design_rows.py was failing on main (e56d97950):

FAIL: test_each_page_has_rows_its_header_can_hold (__main__.DesignTableRows.test_each_page_has_rows_its_header_can_hold) (page='design.md')
AssertionError: Lists differ: [(328, 4, 3)] != [] : rows to fix in docs/design.md (line, cells, header cells): [(328, 4, 3)]

FAIL: test_each_page_names_each_topic_once_per_table (__main__.DesignTableRows.test_each_page_names_each_topic_once_per_table) (page='README.md')
AssertionError: Lists differ: [('[strand_grooms.md](strand_grooms.md)', [23, 27]), ('[ped_catalogues.md](ped_catalogues.md)', [26, 46])] != [] : rows to merge into one in docs/README.md (topic, lines): '[strand_grooms.md](strand_grooms.md)' at [23, 27]; '[ped_catalogues.md](ped_catalogues.md)' at [26, 46]
  1. In docs/design.md line 328, an unescaped pipe | in prim_cnt << 12 | vtx_cnt split the table cell, creating 4 cells in a 3-column table. Escaping it as \| restores 3 cells.
  2. In docs/README.md, commit 0980beac2 inserted duplicate rows for strand_grooms.md and ped_catalogues.md at lines 26-27, which were already present at lines 23 and 46. This deduplicates the rows, keeping the full measured statistics in the respective section.

Tested

  • Windows 11 Pro 26100, Python 3.12.10, CPU only, no GPU, no game files.
  • Negative control on main (e56d97950):
    python -I tests/test_docs_design_rows.py -> FAILED (failures=2).
  • Positive control on fix/docs-design-table-rows (065d86a31):
    python -I tests/test_docs_design_rows.py -> Ran 5 tests in 0.042s - OK.
  • Hygiene checks:
    python -I scripts/check_no_game_data.py docs/design.md docs/README.md: clean.
    git diff --check origin/main: clean.

AI-assisted: yes.

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. (Not applicable: docs-only change.)
**@⁠Andretuta** on GitHub · 2026-11-24 02:32 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/164) `ubiquitarianism:old-pr/9897` → `main` · +3 −5 · 2 files · 1 commits · draft > Carried over from **old PR 9897** by `neoisg8` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9897`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > This branch conflicts with the current `main` and needs a rebase. > `neoisg8`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Claimed in the coordination issue: https://github.com/ProjectLeonida/Leonida/issues/9677 Depends on: none. ### What and why `tests/test_docs_design_rows.py` was failing on `main` (`e56d97950`): ```text FAIL: test_each_page_has_rows_its_header_can_hold (__main__.DesignTableRows.test_each_page_has_rows_its_header_can_hold) (page='design.md') AssertionError: Lists differ: [(328, 4, 3)] != [] : rows to fix in docs/design.md (line, cells, header cells): [(328, 4, 3)] FAIL: test_each_page_names_each_topic_once_per_table (__main__.DesignTableRows.test_each_page_names_each_topic_once_per_table) (page='README.md') AssertionError: Lists differ: [('[strand_grooms.md](strand_grooms.md)', [23, 27]), ('[ped_catalogues.md](ped_catalogues.md)', [26, 46])] != [] : rows to merge into one in docs/README.md (topic, lines): '[strand_grooms.md](strand_grooms.md)' at [23, 27]; '[ped_catalogues.md](ped_catalogues.md)' at [26, 46] ``` 1. In `docs/design.md` line 328, an unescaped pipe `|` in `prim_cnt << 12 | vtx_cnt` split the table cell, creating 4 cells in a 3-column table. Escaping it as `\|` restores 3 cells. 2. In `docs/README.md`, commit `0980beac2` inserted duplicate rows for `strand_grooms.md` and `ped_catalogues.md` at lines 26-27, which were already present at lines 23 and 46. This deduplicates the rows, keeping the full measured statistics in the respective section. ### Tested - Windows 11 Pro 26100, Python 3.12.10, CPU only, no GPU, no game files. - Negative control on `main` (`e56d97950`): `python -I tests/test_docs_design_rows.py` -> `FAILED (failures=2)`. - Positive control on `fix/docs-design-table-rows` (`065d86a31`): `python -I tests/test_docs_design_rows.py` -> `Ran 5 tests in 0.042s - OK`. - Hygiene checks: `python -I scripts/check_no_game_data.py docs/design.md docs/README.md`: clean. `git diff --check origin/main`: clean. AI-assisted: yes. ### Checklist - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (Not applicable: docs-only change.)
Escape an unescaped '|' in design.md line 328 ('prim_cnt << 12 \| vtx_cnt')
which split the row into 4 columns in a 3-column table.
Remove duplicated rows for strand_grooms.md and ped_catalogues.md in
docs/README.md introduced by commit 0980beac2.

Fixes tests/test_docs_design_rows.py failures on main:
- test_each_page_has_rows_its_header_can_hold: [(328, 4, 3)]
- test_each_page_names_each_topic_once_per_table: strand_grooms.md, ped_catalogues.md

AI-assisted: yes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:47:02 +00:00
This pull request has changes conflicting with the target branch.
  • docs/README.md
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/164/head:github-bot/gh-164'
git switch 'github-bot/gh-164'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-164'
git switch 'github-bot/gh-164'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-164'
git switch 'github-bot/gh-164'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-164'
git switch 'main'
git merge --squash 'github-bot/gh-164'
git switch 'main'
git merge --ff-only 'github-bot/gh-164'
git switch 'main'
git merge 'github-bot/gh-164'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.