From 92e0d34ec242260af61258ee6c0a5e8a7fc83a97 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Wed, 24 Jul 2024 12:41:54 +0200 Subject: Trim the value of a property --- properties.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/properties.y b/properties.y index dcb7fb2..192c31e 100644 --- a/properties.y +++ b/properties.y @@ -2,7 +2,7 @@ #include #include -#include +#include "utils/string.h" %} @@ -20,7 +20,7 @@ properties: property ; property: KEY DIV value { - printf("<%s> ---> <%s>\n", $1.value, $3.value); + printf("<%s> ---> <%s>\n", $1.value, trim($3.value)); } | KEY DIV { printf("<%s> ---> NO VALUE\n", $1.value); -- cgit v1.2.3