2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Cleanup tag filtering code for statementlist:: RST directive

Technically this is fixup for
33931c97fa
but that commit is already merged.
This commit is contained in:
Petr Špaček
2022-06-30 17:29:18 +02:00
parent d88fefbb4a
commit f5faddd08a

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(