prettier / prettier/plugin-pug
Bug: removes 2nd block with angular interpolation
Open
Nobody has claimed this yet.
framework: Angular
help wanted
type: bug
- Dominant language
- TypeScript
- Stars
- 208
- Forks
- 49
- Avg merge
- 4h 26m
- Merged PRs (30d)
- 8
Description
Info
| Tool | Version |
|---|---|
| Plugin | v1.1.9 |
| Prettier | v1.19.1 |
| Node | v13.6.0 |
| OS | linux |
Input
foo(title="{{'something' | translate}} - {{'something else' | translate}}")
Output or Error
foo(title="{{ 'something' | translate }}")
Expected Output
foo(title="{{ 'something' | translate }} - {{ 'something else' | translate }}")
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
Reproduce the issue with the supplied Pug input using plugin v1.1.9 and compare the formatter output with the expected output. Trace the plugin's handling of multiple Angular interpolation blocks, then add or update a regression test covering both translated expressions and verify the full test suite.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- pug, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100