[PR #703] exe_checklist: handle bare list markers, nested item continuations, and code fences (OLD-8385) #743

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/703
Author: @abnalstlll-byte
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: feat/exe-checklist-list-items


📝 Commits (4)

  • a6ee9c0 exe_checklist: stop multi-line doc notes at ordered and plus list items
  • d6d161c exe_checklist: handle bare list markers, nested item continuations, and code fences
  • e207ebf exe_checklist: stop item continuation when a nested item starts its own marker
  • 35bae64 exe_checklist: recognize ~~~ code fences and preserve notes after unclosed fences (OLD-8385)

📊 Changes

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

View changed files

📝 tests/test_exe_checklist.py (+92 -0)
📝 tools/exe_checklist.py (+57 -3)

📄 Description

Summary

Restores old upstream PR 8385 (OLD-8385).

Refines markdown parsing in \ ools/exe_checklist.py:

  1. Allow bare empty markers at end-of-line by matching (?:\s+|$)\ in \LIST_ITEM.
  2. Track list item base indentation so nested sub-items (e.g. \ + ...\ or \ 1. ...) under a note are retained as continuations rather than falsely treated as sibling delimiters.
  3. Skip fenced code blocks (\) so code containing +\ or numbered markers does not truncate notes or trigger false notes.
  4. Add synthetic unit tests for bare markers, nested items, prose continuations, and code fences.

Verification

  • Tested with standard library: \python -I tests/test_exe_checklist.py\ (16/16 PASS).
  • Clean-room check: \python -I scripts/check_no_game_data.py\ clean.
  • Zero dependencies outside the Python standard library. No game files, retail binaries, or keys.
  • AI-assisted (Claude Code).

🔄 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/703 **Author:** [@abnalstlll-byte](https://github.com/abnalstlll-byte) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/exe-checklist-list-items` --- ### 📝 Commits (4) - [`a6ee9c0`](https://github.com/ubiquitarianism/leonida/commit/a6ee9c028e01a93797ffbd4e6c565177c0fdc392) exe_checklist: stop multi-line doc notes at ordered and plus list items - [`d6d161c`](https://github.com/ubiquitarianism/leonida/commit/d6d161c38daa5cd88de06cb20ca4e10042e57dd8) exe_checklist: handle bare list markers, nested item continuations, and code fences - [`e207ebf`](https://github.com/ubiquitarianism/leonida/commit/e207ebf25780198e933b895a20cade9442c9f74f) exe_checklist: stop item continuation when a nested item starts its own marker - [`35bae64`](https://github.com/ubiquitarianism/leonida/commit/35bae64b5ac0e63fad84a76f06dbd4c7050fef72) exe_checklist: recognize ~~~ code fences and preserve notes after unclosed fences (OLD-8385) ### 📊 Changes **2 files changed** (+149 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_exe_checklist.py` (+92 -0) 📝 `tools/exe_checklist.py` (+57 -3) </details> ### 📄 Description ### Summary Restores old upstream PR 8385 (OLD-8385). Refines markdown parsing in \ ools/exe_checklist.py\: 1. Allow bare empty markers at end-of-line by matching \(?:\s+|$)\ in \LIST_ITEM\. 2. Track list item base indentation so nested sub-items (e.g. \ + ...\ or \ 1. ...\) under a note are retained as continuations rather than falsely treated as sibling delimiters. 3. Skip fenced code blocks (\\\) so code containing \+\ or numbered markers does not truncate notes or trigger false notes. 4. Add synthetic unit tests for bare markers, nested items, prose continuations, and code fences. ### Verification - Tested with standard library: \python -I tests/test_exe_checklist.py\ (16/16 PASS). - Clean-room check: \python -I scripts/check_no_game_data.py\ clean. - Zero dependencies outside the Python standard library. No game files, retail binaries, or keys. - AI-assisted (Claude Code). --- <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#743
No description provided.