Yaml formatter does not format spaces per indent
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 15 release candidate
### What happened
When I change `Number of Spaces per Indent` for `Yaml` language to 2 and open YAML file indented with 4 spaces, click to format and nothing happens.
### How to reproduce
change `Number of Spaces per Indent` for `Yaml` language to 2:

Open YAML file indented with 4 spaces and click Format.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Linux 5.19.2-1-default, openSUSE Tumbleweed, x86_64
### JDK
OpenJDK 64-Bit Server VM 11.0.16+8-suse-1.1-x8664
### Apache NetBeans packaging
Own source build
### Anything else
_No response_
### Are you willing to submit a pull request?
No
### Code of Conduct
Yes
Contributor guide
Research direction
Start by reproducing the reported case in NetBeans 15: set YAML's Number of Spaces per Indent to 2, open a YAML file using 4-space indentation, and run Format. Trace the YAML formatter's handling of that setting; done means formatting changes indentation to the configured width and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, yaml
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100