apache / apache/netbeans

Twig Indenting code format, not indenting correctly

Open
#4,869 11 comments 0 reactions 0 assignees View on GitHub
kind:bug needs:triage PHP
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 15

### What happened

Im using Twig, the (IF statement does not align,

![pic1](https://user-images.githubusercontent.com/3070441/198254476-09bef49a-4815-41f1-ac2e-67ee63caf48a.gif)
![pic2](https://user-images.githubusercontent.com/3070441/198254501-813a5845-6051-423e-a002-76acc50b3fe5.gif)

### How to reproduce

Detail same as in what happened

### Did this work correctly in an earlier version?

Apache NetBeans 12.6 or earlier

### Operating System

Windows 10 X64

### JDK

19

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

Every time you use Twig file and try to do source format.

### Are you willing to submit a pull request?

Yes

### Code of Conduct

Yes

Contributor guide

Open the contributing guide

Research direction

The report concerns Twig source formatting in Apache NetBeans 15 and includes GIFs, but it names no source file or test. Start by reproducing the formatting behavior with a Twig file and compare it with NetBeans 12.6 or earlier; done means the IF statement aligns correctly after source formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.