From c7a40729a5e6c8d1d8d84aed1ce589b49b5fbf3e Mon Sep 17 00:00:00 2001 From: Adrien BARRAL Date: Tue, 4 Sep 2018 11:07:43 +0200 Subject: [PATCH] Buf Fix : Remove whitespaces in enum strings value. --- scripts/make_library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/make_library.py b/scripts/make_library.py index 203ecc5..a603391 100755 --- a/scripts/make_library.py +++ b/scripts/make_library.py @@ -78,7 +78,7 @@ def make_declaration(self, f): def make_assignations(self, f, className): if(self.type == 'string'): - f.write(' const std::string %s::%s = "%s";\n' % (className, self.name, self.value)) + f.write(' const std::string %s::%s = "%s";\n' % (className, self.name, self.value.replace(" ",""))) class PrimitiveDataType: """ Our datatype is a C/C++ primitive. """