aboutsummaryrefslogtreecommitdiff
path: root/properties.y
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-24 12:41:54 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-24 12:41:54 +0200
commit92e0d34ec242260af61258ee6c0a5e8a7fc83a97 (patch)
treed76c8a9798fa55defa2c156f543166882696fe00 /properties.y
parent8325f037bc7fd17bb083ff4b6540eeb744b3a540 (diff)
downloadproperties-92e0d34ec242260af61258ee6c0a5e8a7fc83a97.tar.gz
properties-92e0d34ec242260af61258ee6c0a5e8a7fc83a97.zip
Trim the value of a property
Diffstat (limited to 'properties.y')
-rw-r--r--properties.y4
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);