Files
test-repo/changelog_unreleased/javascript/18594.md
T
2026-01-13 00:14:18 +08:00

323 B

Preserve trailing double spaces in JSDoc (#18594 by @seiyab)

Some tools treat these spaces as meaningful.

await require('prettier').format('/**\n * With 2 spaces   \n */', {parser: 'babel'});

# Prettier stable
// -> '/**\n * With 2 spaces\n */\n'

# Prettier main
// -> '/**\n * With 2 spaces  \n */\n'