Cleanup tag filtering code for statementlist:: RST directive

Technically this is fixup for
33931c97fa
but that commit is already merged.

(cherry picked from commit f5faddd08a)
This commit is contained in:
Petr Špaček 2022-06-30 17:29:18 +02:00
parent 666f0f1d40
commit e8cb9cceb7
No known key found for this signature in database
GPG key ID: ABD587CDF06581AE

View file

@ -442,20 +442,13 @@ def domain_factory(domainname, domainlabel, todolist, grammar):
TableColumn("ref", "Statement"),
TableColumn("short", "Description"),
]
table_b = DictToDocutilsTableBuilder(table_header)
table_b.append_iterable(
sorted(
iscconf.list_all(fromdocname),
key=lambda x: x["fullname"],
)
)
tag_header = []
if len(acceptable_tags) != 1:
# tags column only if tag filter is not applied
tag_header = [
TableColumn("tags_txt", "Tags"),
]
table_b = DictToDocutilsTableBuilder(table_header + tag_header)
table_b.append_iterable(
sorted(