From 5699c497a45e08e9e502974e8055d1291dde29dd Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 7 Mar 2025 21:18:28 +0800 Subject: http/templates: Reduce whitespace --- templates/_group_path.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/_group_path.tmpl') diff --git a/templates/_group_path.tmpl b/templates/_group_path.tmpl index f8b5f47..3a14edc 100644 --- a/templates/_group_path.tmpl +++ b/templates/_group_path.tmpl @@ -3,6 +3,6 @@ SPDX-FileContributor: Runxi Yu */}} {{- define "group_path_plain" -}} -{{ $p := . }} -{{ range $i, $s := . }}{{ $s }}{{ if ne $i (len $p) }}/{{ end }}{{ end }} -{{ end }} +{{- $p := . -}} +{{- range $i, $s := . -}}{{- $s -}}{{- if ne $i (len $p) -}}/{{- end -}}{{- end -}} +{{- end -}} -- cgit v1.2.3