mblode / mblode/vscode-twig-language

Problem using "-" like in {%- block 'X' -%}

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

Nobody has claimed this yet.

formatter
Dominant language
JavaScript
Stars
45
Forks
7
PR merge metrics
No merged PRs in 30d

Description

I use {%- and -%} to suppress spaces. '-' can be add right, left or both.

Formating don't take care of it like for standart delimiter.

Example :

        {% block title -%}
        block title
    {%- endblock %}

Contributor guide

No contributing guide indexed for this repository

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

Start with the formatting behavior for the Twig block example in the issue, then locate the VS Code extension entry point that handles formatting. Check how whitespace-control delimiters using '-' are processed compared with standard delimiters. Done means formatting preserves the intended left, right, or both-sided whitespace suppression.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.