diff --git a/src/misc/defines.h b/src/misc/defines.h index 978534d7..fbecd29d 100644 --- a/src/misc/defines.h +++ b/src/misc/defines.h @@ -59,6 +59,7 @@ #define PROPERTY_DISTANCE "distance" #define PROPERTY_ANGLE "angle" #define PROPERTY_SCALE "scale" +#define PROPERTY_STRING "string" #define PROPERTY_UPDATES "updates" #define PROPERTY_POSITION "position" diff --git a/src/text.c b/src/text.c index 85ce1b70..e493e25c 100644 --- a/src/text.c +++ b/src/text.c @@ -449,7 +449,9 @@ bool text_parse_sub_domain(struct text* text, FILE* rsp, struct token property, char prev = text->align; text->align = get_token(&message).text[0]; return prev != text->align; - } + } else if (token_equals(property, PROPERTY_STRING)) { + return text_set_string(text, token_to_string(get_token(&message)), false); + } else { struct key_value_pair key_value_pair = get_key_value_pair(property.text, '.'); if (key_value_pair.key && key_value_pair.value) {