瀏覽代碼

Fixed bug in model bootstrap compiler

Yentl Van Tendeloo 8 年之前
父節點
當前提交
1a274716ad
共有 1 個文件被更改,包括 1 次插入1 次删除
  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":