From a486e6e294df9f9945ab72fceda87b803dc90d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0pa=C4=8Dek?= Date: Fri, 24 Jun 2022 10:00:59 +0200 Subject: [PATCH] Detect unsupported statement:: directives with multiple names (cherry picked from commit d61d998e3b2e1aeeacea117ec8d25b45552f0da8) --- doc/arm/_ext/iscconf.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/arm/_ext/iscconf.py b/doc/arm/_ext/iscconf.py index f1b4c7e118..0edd285965 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