From 01e988d6047b29f1ae23ef2e75d967be227d2678 Mon Sep 17 00:00:00 2001 From: Brian Taylor Date: Mon, 23 May 2022 16:41:45 -0700 Subject: [PATCH] Remove optional:, params:, text: before generating a ports list. --- src/frontend/udevices.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/frontend/udevices.c b/src/frontend/udevices.c index 55087c10e..b57701dab 100644 --- a/src/frontend/udevices.c +++ b/src/frontend/udevices.c @@ -424,6 +424,16 @@ void create_ports_list(void) pos = strstr(copy_line, "optional:"); if (pos) { *pos = '\0'; + } else { + pos = strstr(copy_line, "params:"); + if (pos) { + *pos = '\0'; + } else { + pos = strstr(copy_line, "text:"); + if (pos) { + *pos = '\0'; + } + } } /* skip past .subckt and its name */ tok = strtok(copy_line, " \t");