@@ -147,7 +147,7 @@ def set_value(self,value,indent):
147147 elif self .itype == "List" :
148148 str_param_value += str (self .value ).replace ("[" ,"{" ).replace ("]" ,"}" )
149149 elif self .itype == 'Struc' :
150- str_param_value += self .value_struc (self .value [0 ],indent + " " )
150+ str_param_value += self .value_struc (self .value [0 ],indent + " " , "" )
151151 else :
152152 str_param_value += str (value )
153153 return str_param_value
@@ -190,7 +190,7 @@ def types_struc(self,struc_dict,indent):
190190 indent_new = ""
191191 return str_param
192192
193- def value_struc (self ,struc_dict ,indent ):
193+ def value_struc (self ,struc_dict ,indent , string_end ):
194194 str_param = "{\n "
195195 indent_new = indent + " "
196196 for struc_element in struc_dict :
@@ -205,12 +205,12 @@ def value_struc(self,struc_dict,indent):
205205 if sub_type == "Boolean" :
206206 sub_value = str (sub_value ).lower ()
207207 if isinstance (sub_value ,dict ):
208- str_param += self .value_struc (struc_dict [struc_element ],indent_new )
208+ str_param += self .value_struc (struc_dict [struc_element ],indent_new , "}}" )
209209 else :
210210 str_param += "%s}}" % (sub_value )
211211 str_param += ",\n "
212212 str_param = str_param [:- 2 ]
213- str_param += "}"
213+ str_param += "}%s" % ( string_end )
214214 indent_new = ""
215215 return str_param
216216
0 commit comments