mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 18:22:05 -04:00
Remove extra whitespace in grammar for null statement
(cherry picked from commit 1af157eb20)
This commit is contained in:
parent
fa871ffa67
commit
e55682f6f7
1 changed files with 5 additions and 5 deletions
|
|
@ -180,11 +180,11 @@ def domain_factory(domainname, domainlabel, todolist, grammar):
|
|||
separator = ""
|
||||
paths = ""
|
||||
subgrammar = grammar_grp[0].subgrammar
|
||||
grammar_txt = (
|
||||
subgrammar.get("_pprint_name", self.isc_name)
|
||||
+ " "
|
||||
+ checkgrammar.pformat_grammar(grammar_grp[0].subgrammar, level=1)
|
||||
)
|
||||
subgrammar_txt = checkgrammar.pformat_grammar(subgrammar).strip()
|
||||
grammar_txt = subgrammar.get("_pprint_name", self.isc_name)
|
||||
if subgrammar_txt != ";":
|
||||
grammar_txt += " "
|
||||
grammar_txt += subgrammar_txt
|
||||
if "\n" in grammar_txt.strip():
|
||||
nodetype = nodes.literal_block
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue