From 77c51b247e4ebc6a521f5c8352885c0cd12b0f5a Mon Sep 17 00:00:00 2001 From: Dealga McArdle Date: Thu, 9 Sep 2021 12:59:32 +0200 Subject: [PATCH] add extra docstring test --- utils/sv_extra_search.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/sv_extra_search.py b/utils/sv_extra_search.py index 61f0e5b2a..33339de83 100644 --- a/utils/sv_extra_search.py +++ b/utils/sv_extra_search.py @@ -121,7 +121,12 @@ def gather_items(context): nodetype = get_node_class_reference(item[0]) if not nodetype: continue - fx.append((str(idx), ensure_valid_show_string(nodetype), '', idx)) + + docstring = ensure_valid_show_string(nodetype) + if not docstring: + continue + + fx.append((str(idx), docstring, '', idx)) idx += 1 for k, v in macros.items(): -- GitLab