eww
eww copied to clipboard
[BUG] Leading spaces are stripped from text elements
Checklist before submitting an issue
- [X] I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
- [X] I have specifically verified that this bug is not a common user error
- [X] I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)
Description of the bug
Any keading space characters at the start of text elements are stripped before rendering.
e.g. " hello world"
is displayed as "hello world"
Reproducing the issue
The following code renders the " on "
element without the first space character.
(box :orientation "horizontal"
:halign "end"
:class "subtitle"
:space-evenly false
"The time is now "
(label :class "time" :text {time})
" on "
(label :class "date" :text {day})
".")
Specs
- Version:
eww 0.4.0 678e4dbc6b6439bf50898ae2b13fcc65900c439c
(wayland enabled) - WL Compositor: hyprland, commit
826e35
(Dec 4th) - Artix Linux (kernel
6.0.7-artix1-1
)
Expected behaviour
The leading space characters should be displayed.
Additional context
The inspector shows that the leading space is stripped before being loaded as a GTKLabel object.
I can edit the text within the inspector to add the space manually, but this obviously doesn't persist between reloads.