diff options
author | 2024-07-24 12:41:54 +0200 | |
---|---|---|
committer | 2024-07-24 12:41:54 +0200 | |
commit | 92e0d34ec242260af61258ee6c0a5e8a7fc83a97 (patch) | |
tree | d76c8a9798fa55defa2c156f543166882696fe00 /properties.y | |
parent | 8325f037bc7fd17bb083ff4b6540eeb744b3a540 (diff) | |
download | properties-92e0d34ec242260af61258ee6c0a5e8a7fc83a97.tar.gz properties-92e0d34ec242260af61258ee6c0a5e8a7fc83a97.zip |
Trim the value of a property
Diffstat (limited to 'properties.y')
-rw-r--r-- | properties.y | 4 |
1 files 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 <stdio.h> #include <stdlib.h> -#include <string.h> +#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); |