Skip to content

🐛 Bug: Use wordwrap: false in blockPackageJson description conversion #1873

Closed
@JoshuaKGoldberg

Description

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Expected

blockPackageJson converts options.description from potentially HTML to plain text for printing in the package.json. This should not wrap across lines - it should be on one line.

Actual

wordwrap defaults to true, so this does wrap words:

const description = htmlToText.convert(options.description);

I see a \n added in there for long descriptions.

Additional Info

Prototyped in #1839.

💖

Metadata

Labels

status: accepting prsPlease, send a pull request to resolve this!type: bugSomething isn't working :(

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions