fix: shipped text and generated docs use the em-dash character #853
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#853
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
madtea's shipped text uses the em-dash character (U+2014) as a separator and in prose. The
madt_statusline is one example: it separatesRepo <owner>/<repo>,On branch main, andnothing to commitwith U+2014. I write plain hyphens in everything I ship, and the text that madtea prints, its tool descriptions, its help, and its generated reference docs should follow the same rule.A
git grep -lfor U+2014 over the non-test Go files underinternal/finds the character in 397 files. That count covers comments and string literals together. The files with the most areinternal/mcp/tools_help.go(168 lines),internal/mcp/help_generated.go(126),internal/parity/allowlist.go(95),internal/mcp/description_drift.go(87), andinternal/opspec/paramdocs.go(82).Scope
docs/reference/, regenerated from the fixed source.The text output of a command is not public API, so a changed separator is not a breaking change. A
raw_jsonvalue that carries an em-dash would be, so the change must name any such value.Acceptance criteria
_test.gofiles contains U+2014.go run ./cmd/madtea-dev docs generateproduces reference docs with no U+2014.internal/parityfails when a non-test Go string literal contains U+2014, so the character cannot come back.