[GH-ISSUE #418] [BUG] Pango parses ironvars inside Dynamic String fields incorrectly #7168

Closed
opened 2026-05-23 02:52:49 +01:00 by JakeStanger · 1 comment
Owner

Originally created by @izelnakri on GitHub (Jan 25, 2024).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/418

Given:

{
  "type": "label",
  "label": "<span color='#battery-color'>#battery-percent</span>"
}

I get this runtime error, even when ironvar_defaults defined:

(ironbar:445544): Gtk-WARNING **: 16:34:18.280: Failed to set text '<span color='' from markup due to error parsing markup: Error on line 1 char 31: Document ended unexpectedly while inside an attribute value

Ironbar version: v0.14.0

Originally created by @izelnakri on GitHub (Jan 25, 2024). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/418 Given: ``` { "type": "label", "label": "<span color='#battery-color'>#battery-percent</span>" } ``` I get this runtime error, even when `ironvar_defaults` defined: `(ironbar:445544): Gtk-WARNING **: 16:34:18.280: Failed to set text '<span color='' from markup due to error parsing markup: Error on line 1 char 31: Document ended unexpectedly while inside an attribute value` Ironbar version: `v0.14.0`
Author
Owner

@JakeStanger commented on GitHub (Jan 25, 2024):

Fixed an issue where the dynamic string parser was being too greedy, and a separate issue where it'd initialize with an empty string causing the warning. Cheers for reporting

<!-- gh-comment-id:1911151036 --> @JakeStanger commented on GitHub (Jan 25, 2024): Fixed an issue where the dynamic string parser was being too greedy, and a separate issue where it'd initialize with an empty string causing the warning. Cheers for reporting
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#7168
No description provided.