mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-03 20:48:31 +00:00
fix dollar escape in TEXT
The idea found in the code is any double dollar ($$) is being treated as explicit dollar sign ($) instead of the start of a text object reference. Due to missing update of the 's' variable, when creating a text object for the text following the second dollar sign, the later was prepended, leading to a double dollar in the output.
This commit is contained in:
parent
363bed34ac
commit
12a40fd0a9
@ -2844,6 +2844,7 @@ static int extract_variable_text_internal(struct text_object *retval, const char
|
||||
continue;
|
||||
} else {
|
||||
obj = create_plain_text("$");
|
||||
s = p + 1;
|
||||
if (obj != NULL) {
|
||||
append_object(retval, obj);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user