diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2020-12-29 12:06:03 +0100 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2020-12-29 12:13:05 +0100 |
commit | 70031378d80e3bc8c23d5a5028d226b374712fe3 (patch) | |
tree | 75a34cddada99426a0aef5fdb0badf2a4926dda7 /scripts | |
parent | 43fc338c2d76f3193989fb7d1f559875ae4478e7 (diff) | |
download | ghdl-70031378d80e3bc8c23d5a5028d226b374712fe3.tar.gz ghdl-70031378d80e3bc8c23d5a5028d226b374712fe3.tar.bz2 ghdl-70031378d80e3bc8c23d5a5028d226b374712fe3.zip |
Modified formatting.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/pnodes.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/scripts/pnodes.py b/scripts/pnodes.py index a753c7957..a5430c879 100755 --- a/scripts/pnodes.py +++ b/scripts/pnodes.py @@ -464,16 +464,14 @@ def gen_choices(choices): """Generate a choice 'when A | B ... Z =>' using elements of CHOICES.""" is_first = True for c in choices: + ch = prefix_name + c if is_first: - print(" ", end='') - print("when", end='') + is_first = False + print(" when " + ch, end='') else: print() - print(" ", end='') - print(" |", end='') - print(prefix_name + c, end='') - is_first = False - print("=>") + print(" | " + ch, end='') + print(" =>") def gen_get_format(formats, nodes, kinds): |