prettier / prettier/plugin-pug

Bug: removes 2nd block with angular interpolation

Open
#78 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.