Wireless %quality field includes unwanted leading space in format output
- Dominant language
- C
- Stars
- 653
- Forks
- 254
- PR merge metrics
- No merged PRs in 30d
Description
# Wireless `%quality` field includes unwanted leading space in format output
Hello,
I’m using i3status and noticed that the `%quality` field in the wireless module outputs a leading space. For example, with this config line:
```conf
format_up = "W: (%quality at %essid) %ip"
```
The output looks like this:
```
W: ( 53% at TP-Link_A772_5G) 192.168.x.x
```
Notice the unwanted space right after the opening parenthesis before the number.
Is there a way to remove this leading space within i3status, or is this a known limitation? Ideally, %quality would be output without any leading/trailing spaces to allow precise formatting.
Thanks for your help!
Contributor guide
Research direction
Reproduce the issue with the wireless module and the shown format_up configuration, then trace how `%quality` is rendered in the wireless status output. Confirm the expected behavior by checking whether the value can be emitted without surrounding whitespace, and verify that the example output preserves the requested spacing around the percentage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- cli, networking
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100