1
0
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:
Phil Sutter 2009-03-24 00:29:07 +01:00
parent 363bed34ac
commit 12a40fd0a9

View File

@ -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);
}