diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-06-25 19:17:52 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-06-25 19:17:52 +0200 |
commit | fa5347b18f9bf028d97b02163cbf0e7cba369640 (patch) | |
tree | 5d0f543a905dd7f0749c68cfe612df2bb15b4b20 | |
parent | a4ce08bde0bcef664706b78146077ad7053a468b (diff) |
Fix some bugs
-rwxr-xr-x | build | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -230,10 +230,9 @@ compile_for_lang() { close(CMD) for (i = 1; i <= 3; i++) { - if (i == 3 && denom == 5) { - print "</tr>" + if (i == 3 && denom == 5) break - } + if (i == 1) sig = "Wim Duisenberg" else if (i == 2) @@ -242,26 +241,25 @@ compile_for_lang() { sig = "Mario Draghi" print "<tr class=new-design><th colspan=12>"sig"</th></tr>" - c = 0 + c = 1 for (j = 1; j <= length(col); j++) { split(col[j][1], s, " ") if (s[i] == "/") continue - if (c % 4 == 0) + if ((c - 1) % 4 == 0) printf "<trX>" printf "<td colspan=X class=%s>", getcls(s[i]) printf "%s (%s)", cc2name[col[j][0]], cc2c[col[j][0]] printf "</td>" - if (c % 4 == 3 && j < length(col)) + if (c % 4 == 0) print "</tr>" - if (c % 4 != 3 || j != length(col)) - c++ + c++ } - if ((c - 1) % 4 != 3) + if ((c - 2) % 4 != 3) print "</tr>" } print "MARKER LOL" |