summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-07-25 18:25:35 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-07-25 18:25:35 +0200
commit35920b11c9dfdc001eea7d3b2582c58aa3aa381b (patch)
tree8e30789b91a9651ea61abf3ff499cbc8155dbb96 /scripts
parentfc1385dc7a6e788e5dcdb25169c77f93eb56b10a (diff)
Fix mintmark display for German extras table
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen-ecoin8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/gen-ecoin b/scripts/gen-ecoin
index 18512b8..190725a 100755
--- a/scripts/gen-ecoin
+++ b/scripts/gen-ecoin
@@ -9,6 +9,12 @@ BEGIN {
}
$1 == CC {
- printf "tr {td{-%s} td{-%s} td .%s colspan=\"5\" {-%s}}", $2, $3, getcls($4), $5
+ if (split($2, a, " ") == 1) {
+ printf "tr {td{-%s} td{-%s} td .%s colspan=\"5\" {-%s}}", \
+ $2, $3, getcls($4), $5
+ } else {
+ printf "tr {td{-%s @sup{-%s}} td{-%s} td .%s colspan=\"5\" {-%s}}", \
+ a[1], a[2], $3, getcls($4), $5
+ }
}
' data/extras