From: Petr Špaček Date: Fri, 24 Jun 2022 08:00:59 +0000 (+0200) Subject: Detect unsupported statement:: directives with multiple names X-Git-Tag: v9.19.3~16^2~18 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=d61d998e3b2e1aeeacea117ec8d25b45552f0da8;p=thirdparty%2Fbind9.git Detect unsupported statement:: directives with multiple names --- diff --git a/doc/arm/_ext/iscconf.py b/doc/arm/_ext/iscconf.py index f1b4c7e1184..0edd285965e 100644 --- a/doc/arm/_ext/iscconf.py +++ b/doc/arm/_ext/iscconf.py @@ -134,6 +134,12 @@ def domain_factory(domainname, domainlabel, todolist, grammar): tags += nodes.Text(", ".join(self.isc_tags)) contentnode.insert(0, tags) + names = self.get_signatures() + if len(names) != 1: + raise NotImplementedError( + "statements with more than one name are not supported", names + ) + name = domainname label = domainlabel