From 1396c95520f4fbafb045c1a5bb4b9be2dfd04072 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 9 Apr 2024 23:25:42 +0200 Subject: Fix alignment of autogenerated lookup table elements --- gen/prop/nt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gen/prop/nt') diff --git a/gen/prop/nt b/gen/prop/nt index 569cc18..a55ea45 100755 --- a/gen/prop/nt +++ b/gen/prop/nt @@ -37,7 +37,8 @@ END { for (i = 0; i < 0x100; i++) { if (i % 8 == 0) printf "\t" - printf "%7s,%s", props[i] ? props[i] : "NT_NONE", i % 8 == 7 ? "\n" : " " + printf "%-8s%s", (props[i] ? props[i] : "NT_NONE") ",", \ + i % 8 == 7 ? "\n" : " " } print "};" print "" @@ -65,4 +66,4 @@ END { print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup(ch);" print "}" } -' data/DerivedNumericType.txt +' data/DerivedNumericType.txt | sed 's/\s*$//' -- cgit v1.2.3