Skip to content

[pull] latest from npm:latest#163

Merged
pull[bot] merged 3 commits into
DavidLacombe46:latestfrom
npm:latest
May 26, 2026
Merged

[pull] latest from npm:latest#163
pull[bot] merged 3 commits into
DavidLacombe46:latestfrom
npm:latest

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 26, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

reggi and others added 3 commits May 26, 2026 14:14
## Problem

The `generateFlagsTable` function in `docs/lib/index.js` sanitizes
`description` for newlines but does not do the same for `defaultVal` or
`typeVal`. Some config definitions (like `--access`) have multi-line
`defaultDescription` values, which breaks the markdown table — all
subsequent columns/rows get collapsed into a single garbled line.

This is visible on the live docs:
https://docs.npmjs.com/cli/v11/commands/npm-stage

## Fix

Added `.replace(/\n/g, ' ').trim()` to both `defaultVal` and `typeVal`
in `generateFlagsTable`, matching the existing sanitization already
applied to `desc`.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pull pull Bot locked and limited conversation to collaborators May 26, 2026
@pull pull Bot added the ⤵️ pull label May 26, 2026
@pull pull Bot merged commit 33aebaa into DavidLacombe46:latest May 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants