complete previous fix

This commit is contained in:
stefan schippers 2025-01-20 18:21:12 +01:00
parent 7523c0015c
commit c52ded63b0
1 changed files with 6 additions and 1 deletions

View File

@ -653,7 +653,12 @@ int spice_block_netlist(FILE *fd, int i, int alert)
fprintf(fd, "%s\n", translated_sym_def);
my_free(_ALLOC_ID_, &sym_def);
} else {
const char *s = get_cell(sanitize(name), 0);
const char *s;
if(is_generator(name)) {
s = get_cell(sanitize(name), 0);
} else {
s = sanitize(get_cell(name, 0));
}
fprintf(fd, "** sch_path: %s\n", sanitized_abs_sym_path(filename, ""));
fprintf(fd, ".subckt %s ", s);
print_spice_subckt_nodes(fd, i);