/* add class hints if we have a class name */
if(obj->classname) {
if(obj->is_null) {
- buffer_fadd(buf,"<Object class_hint=\\\"%s\\\"/>", obj->classname);
+ buffer_fadd(buf,"<%s><Object class_hint=\\\"%s\\\"/></%s>", tag, obj->classname, tag);
return;
} else {
- buffer_fadd(buf,"<Object class_hint=\\\"%s\\\">", obj->classname);
+ buffer_fadd(buf,"<%s><Object class_hint=\\\"%s\\\">", tag, obj->classname);
}
}
}
if(obj->classname)
- buffer_add(buf,"</Object>");
+ buffer_fadd(buf,"</Object></%s>",tag);
}
char * _lookup_fm_field(char * class, int pos) {