prettier / prettier/plugin-pug
Bug: printWidth option (or pugPrintWidth) not working
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 208
- Forks
- 49
- Avg merge
- 4h 26m
- Merged PRs (30d)
- 8
Description
For some reason, the default Prettier option is not working with pug files. I tried both options printWidth and pugPrintWidth. The pug file with some long text remains unformatted.
Also, the plugin does not convert indents to tabs ("useTabs": true) on save.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. First reproduce the report with a Pug file containing long text and indented content, using both printWidth or pugPrintWidth and useTabs; trace the plugin's option handling and formatter output. Done means long text responds to the configured width and indentation uses tabs on save, with regression coverage for both behaviors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100