[PR #164] docs: escape pipe in design.md table and deduplicate README.md rows #216

Open
opened 2026-11-26 20:17:10 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/164
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/9897


📝 Commits (1)

  • 065d86a docs: escape pipe in design.md table and deduplicate README.md rows

📊 Changes

2 files changed (+3 additions, -5 deletions)

View changed files

📝 docs/README.md (+2 -4)
📝 docs/design.md (+1 -1)

📄 Description

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.)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/164 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9897` --- ### 📝 Commits (1) - [`065d86a`](https://github.com/ubiquitarianism/leonida/commit/065d86a313b7cc6b512c21b8ebc0fa56041e8bdf) docs: escape pipe in design.md table and deduplicate README.md rows ### 📊 Changes **2 files changed** (+3 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `docs/README.md` (+2 -4) 📝 `docs/design.md` (+1 -1) </details> ### 📄 Description > 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.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#216
No description provided.