Explorar o código

Fixed bug in model bootstrap compiler

Yentl Van Tendeloo %!s(int64=8) %!d(string=hai) anos
pai
achega
1a274716ad
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      interface/HUTN/hutn_compiler/model_bootstrap_visitor.py

+ 1 - 1
interface/HUTN/hutn_compiler/model_bootstrap_visitor.py

@@ -166,7 +166,7 @@ class ModelBootstrapVisitor(Visitor):
             # Value attribute
             attr_value = tree.get_children("value")[0].get_tail()[0]
             if attr_value.head == "STRVALUE":
-                attr_value = attr_value.get_text()[1:-1]
+                attr_value = '"%s"' %  attr_value.get_text()[1:-1]
             elif attr_value.head == "TRUE":
                 attr_value = True
             elif attr_value.head == "FALSE":