From 907bfafccdb521723e14aa48ad5815100b97a187 Mon Sep 17 00:00:00 2001 From: Fabian Fischer Date: Tue, 10 May 2022 16:05:10 +0200 Subject: [PATCH] Remove newline on top of template --- description_templates/_compute.gotmpl | 4 ++-- .../golden/appuio_cloud_memory:c-appuio-cloudscale-lpg-2.txt | 1 - .../appuio_cloud_memory:c-appuio-exoscale-ch-gva-2-0.txt | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/description_templates/_compute.gotmpl b/description_templates/_compute.gotmpl index 9e37f3e..f5a93d7 100644 --- a/description_templates/_compute.gotmpl +++ b/description_templates/_compute.gotmpl @@ -1,6 +1,6 @@ -{{template "_compute" . -}} +{{- template "_compute" . -}} {{- define "_compute" -}} -{{$s:="\u2001"}}{{/*We need to use unicode whitespaces to make Odoo render them*/}} +{{- $s:="\u2001" -}}{{- /*We need to use unicode whitespaces to make Odoo render them*/ -}} Compute Qty: {{.Quantity | printf "%.2f"}} {{.Unit}}-Minutes diff --git a/description_templates/golden/appuio_cloud_memory:c-appuio-cloudscale-lpg-2.txt b/description_templates/golden/appuio_cloud_memory:c-appuio-cloudscale-lpg-2.txt index 0500389..7e366c4 100755 --- a/description_templates/golden/appuio_cloud_memory:c-appuio-cloudscale-lpg-2.txt +++ b/description_templates/golden/appuio_cloud_memory:c-appuio-cloudscale-lpg-2.txt @@ -1,4 +1,3 @@ - Compute Qty: 87955674.09 UNIT-Minutes diff --git a/description_templates/golden/appuio_cloud_memory:c-appuio-exoscale-ch-gva-2-0.txt b/description_templates/golden/appuio_cloud_memory:c-appuio-exoscale-ch-gva-2-0.txt index 0f8380f..b1f6363 100755 --- a/description_templates/golden/appuio_cloud_memory:c-appuio-exoscale-ch-gva-2-0.txt +++ b/description_templates/golden/appuio_cloud_memory:c-appuio-exoscale-ch-gva-2-0.txt @@ -1,4 +1,3 @@ - Compute Qty: 87955674.09 UNIT-Minutes