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

Closed
Andretuta wants to merge 1 commit from upstream-pr/164 into main
Andretuta commented 2026-11-24 02:32:45 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T02:32:45Z.


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.)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5464986470 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/164). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T02:32:45Z. --- > 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.)
aslan2142 commented 2026-12-01 10:53:29 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T10:53:29Z.


Closing this carried-over draft (old-pr/9897): both fixes are already on main (docs/design.md already escapes prim_cnt << 12 \| vtx_cnt and docs/README.md has single deduplicated rows for strand_grooms.md and ped_catalogues.md).

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7308873486 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/164#issuecomment-7308873486). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T10:53:29Z. --- Closing this carried-over draft (`old-pr/9897`): both fixes are already on `main` (`docs/design.md` already escapes `prim_cnt << 12 \| vtx_cnt` and `docs/README.md` has single deduplicated rows for `strand_grooms.md` and `ped_catalogues.md`). *(AI-assisted review.)*

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!164
No description provided.