From 7cfdfd8bdfe4f8d7bf74348817f2c046412bd124 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 1 Jan 2025 11:04:20 +0100 Subject: Change the semantics of Printer.M() --- src/templates/coins-designs-ad.html.tmpl | 16 ++++++++-------- src/templates/coins-mintages.html.tmpl | 4 ++-- src/templates/collecting-vending.html.tmpl | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'src/templates') diff --git a/src/templates/coins-designs-ad.html.tmpl b/src/templates/coins-designs-ad.html.tmpl index 1effaeb..c42930a 100644 --- a/src/templates/coins-designs-ad.html.tmpl +++ b/src/templates/coins-designs-ad.html.tmpl @@ -23,16 +23,16 @@

{{ .T "%s, %s, and %s" - (.Printer.M 0.01 false) - (.Printer.M 0.02 false) - (.Printer.M 0.05 false) }}
+ (.Printer.M 0.01) + (.Printer.M 0.02) + (.Printer.M 0.05) }}
{{ .T "Andorran landscapes, nature, fauna, and flora" }}
{{ .T "%s, %s, and %s" - (.Printer.M 0.10 false) - (.Printer.M 0.20 false) - (.Printer.M 0.50 false) }}
+ (.Printer.M 0.10) + (.Printer.M 0.20) + (.Printer.M 0.50) }}
{{ .T "Andorra’s Romanesque art" }}
-
{{ .Printer.M 1.00 false }}
+
{{ .Printer.M 1.00 }}
{{ .T "Casa de la Vall" }}

@@ -88,4 +88,4 @@ ` `` `` }}

-{{ end }} +{{ end }} \ No newline at end of file diff --git a/src/templates/coins-mintages.html.tmpl b/src/templates/coins-mintages.html.tmpl index 4ac29e8..8c60248 100644 --- a/src/templates/coins-mintages.html.tmpl +++ b/src/templates/coins-mintages.html.tmpl @@ -73,7 +73,7 @@ {{ .T "Year" }} {{ with $p := .Printer }} {{ range denoms }} - {{ $p.M . false }} + {{ $p.M . }} {{ end }} {{ end }} @@ -157,4 +157,4 @@ /> {{ index . 2 }} -{{ end }} +{{ end }} \ No newline at end of file diff --git a/src/templates/collecting-vending.html.tmpl b/src/templates/collecting-vending.html.tmpl index 5fcfd0c..2bfea22 100644 --- a/src/templates/collecting-vending.html.tmpl +++ b/src/templates/collecting-vending.html.tmpl @@ -107,7 +107,7 @@ if you throw in five euros. You can try to go above the limit if you throw in, say, %s and then another one- or two euro coin; the machine will probably accept it. - ` (.Printer.M 4.80 false) }} + ` (.Printer.M 4.80) }}
{{ .T "Maximum Change Limit" }}
@@ -150,7 +150,7 @@ something to purchase, throw in less money than the cost, and then cancel the purchase. Note that most cigarette machines in Austria have a %s max change limit. - ` (.Printer.M 4.90 false) }} + ` (.Printer.M 4.90) }}

{{ .T ` -- cgit v1.2.3