Sfoglia il codice sorgente

Fixed bug in model bootstrap compiler

Yentl Van Tendeloo 8 anni fa
parent
commit
1a274716ad
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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":