mudlet/.github
Vadim Peretokin c8b74af46d
fix: undoing the game's line wrapping no longer merges list entries (#9836)
#### Brief overview of PR changes/additions

- A line opening with a list marker - `[1364]`, `(3)`, `2.`, `3)` or a
bullet - is now treated as a new line rather than the continuation of
the one above it, so help indexes, shop stock and menus survive the
option being on.
- Only markers that word wrap could not itself produce at the start of a
continuation count. A spaced dash and a parenthesised number over 3
digits are deliberately excluded, since both open genuine wrapped prose.
- 3 new functional tests, including negative controls proving ordinary
prose still rejoins.

#### Motivation for adding to Mudlet

With "undo the game's word wrapping" enabled at 78 columns, a help index
came out with entries glued together - each entry is a sentence that can
end right at the wrap column, so nothing but its marker distinguished it
from a wrapped paragraph.

#### Other info (issues closed, discussion etc)

Also raises the Windows Lua test step to the 3 minute budget Linux and
macOS already have - it was left at 2 and timed out on a slow runner
while the specs were still running. Folded in here rather than split
out, by request.

Follow-up to #9455, which added the option. The check reads the
continuation only, so the last entry of a list can still absorb a
full-width prose line that follows it - left alone deliberately, as
requiring a marker on both lines would stop the first entry of a list
detaching from a header above it.

**Test case:** enable Settings -> Display -> "undo the game's own word
wrapping" at 78, then on a game with a numbered help index (e.g. `help
viking`) confirm each `[NNN]` entry stays on its own line. `ctest -R
UndoServerWrapTest` covers it - 15/15 pass.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Vadim Peretokin <vadim.peretokin@mudlet.org>

---------

Signed-off-by: Vadim Peretokin <vadim.peretokin@mudlet.org>
2026-08-13 11:39:13 +02:00
..
codeql Infrastructure: disable CodeQL poorly-documented-function query (#9079) 2026-03-22 12:07:26 +01:00
ISSUE_TEMPLATE Infrastructure: New default labels and type for Github issues (#8456) 2025-10-27 18:03:46 +01:00
scripts infrastructure: fix milestone assignment, unbreak the key sequence tests (#9679) 2026-08-06 06:07:10 +02:00
workflows fix: undoing the game's line wrapping no longer merges list entries (#9836) 2026-08-13 11:39:13 +02:00
CODEOWNERS Infrastructure: update CODEOWNERS for the 1 team we have now (#7366) 2024-07-28 19:49:00 +02:00
codespell-wordlist.txt Infrastructure: Add 'nd' as an allowed word (#5616) 2021-11-09 11:07:07 +01:00
copilot-instructions.md Infrastructure: update info for LLM agents (#8245) 2025-09-23 07:06:06 +02:00
dependabot.yml Infrastructure: Ignore lcf submodule in Dependabot, remove vcpkg (#8654) 2025-12-19 18:28:09 +01:00
pr-labeler.yml Improve translation updates (#2712) 2019-07-04 16:58:49 +02:00
PULL_REQUEST_TEMPLATE.md Infrastructure: remove 'release post highlight' from pull request template (#5959) 2022-02-07 09:46:05 +01:00
repo-metadata.yml infrastructure: fix milestone assignment, unbreak the key sequence tests (#9679) 2026-08-06 06:07:10 +02:00