Fix the static configuration generation for environment variables

This commit is contained in:
Jean-Baptiste Doumenjou 2021-02-02 17:10:03 +01:00 committed by GitHub
parent bf4a578bbb
commit 3c5e6fe7f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View file

@ -64,7 +64,12 @@ THIS FILE MUST NOT BE EDITED BY HAND
continue
}
w.writeln("`" + prefix + strings.ReplaceAll(flat.Name, "[0]", "[n]") + "`: ")
if prefix == "" {
w.writeln("`" + prefix + strings.ReplaceAll(flat.Name, "[0]", "_n") + "`: ")
} else {
w.writeln("`" + prefix + strings.ReplaceAll(flat.Name, "[0]", "[n]") + "`: ")
}
if flat.Default == "" {
w.writeln(flat.Description)
} else {