From c3f0bd8f4d7a8d9645178f9ec881fa226f956992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Setni=C4=8Dka?= Date: Thu, 5 Jan 2023 17:54:46 +0100 Subject: [PATCH] Fix for bug in html/template - whitespace around continue https://github.com/golang/go/issues/51670 --- templates/org/org_index_map.tmpl | 6 +++--- templates/org/org_playback.tmpl | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/org/org_index_map.tmpl b/templates/org/org_index_map.tmpl index 4511d75..bc73eaf 100644 --- a/templates/org/org_index_map.tmpl +++ b/templates/org/org_index_map.tmpl @@ -26,7 +26,7 @@ L.tileLayer('https://m{s}.mapserver.mapy.cz/turist-m/{z}-{x}-{y}', { }).addTo(map); {{ range .Ciphers.Ciphers }} - {{ if .Position.Point.IsZero }}{{ continue }}{{ end }} + {{ if .Position.Point.IsZero }}{{continue}}{{ end }} L.circle({{ .Position.Point | latlon }}, { color: 'yellow', fillColor: '#fbff94', @@ -40,7 +40,7 @@ L.tileLayer('https://m{s}.mapserver.mapy.cz/turist-m/{z}-{x}-{y}', { }).addTo(map).on('click', function() {highlightCipher("{{ .ID }}")}); {{ end }} {{ range .Ciphers.MiniCiphers }} - {{ if .Position.Point.IsZero }}{{ continue }}{{ end }} + {{ if .Position.Point.IsZero }}{{continue}}{{ end }} L.circle({{ .Position.Point | latlon }}, { color: 'yellow', fillColor: '#fbff94', @@ -54,7 +54,7 @@ L.tileLayer('https://m{s}.mapserver.mapy.cz/turist-m/{z}-{x}-{y}', { }).addTo(map).on('click', function() {highlightCipher("{{ .ID }}")}); {{ end }} {{ range .Ciphers.Simple }} - {{ if .Position.Point.IsZero }}{{ continue }}{{ end }} + {{ if .Position.Point.IsZero }}{{continue}}{{ end }} L.marker({{ .Position.Point | latlon }}, { title: "{{ .Name }}", icon: simpleIcon, diff --git a/templates/org/org_playback.tmpl b/templates/org/org_playback.tmpl index 6a6d49d..f7a64f2 100644 --- a/templates/org/org_playback.tmpl +++ b/templates/org/org_playback.tmpl @@ -27,7 +27,7 @@ L.tileLayer('https://m{s}.mapserver.mapy.cz/turist-m/{z}-{x}-{y}', { }).addTo(map); {{ range .Ciphers.Ciphers }} - {{ if .Position.Point.IsZero }}{{ continue }}{{ end }} + {{ if .Position.Point.IsZero }}{{continue}}{{ end }} L.circle({{ .Position.Point | latlon }}, { color: 'yellow', fillColor: '#fbff94', @@ -41,7 +41,7 @@ L.tileLayer('https://m{s}.mapserver.mapy.cz/turist-m/{z}-{x}-{y}', { }).addTo(map).on('click', function() {highlightCipher("{{ .ID }}")}); {{ end }} {{ range .Ciphers.MiniCiphers }} - {{ if .Position.Point.IsZero }}{{ continue }}{{ end }} + {{ if .Position.Point.IsZero }}{{continue}}{{ end }} L.circle({{ .Position.Point | latlon }}, { color: 'yellow', fillColor: '#fbff94', @@ -55,7 +55,7 @@ L.tileLayer('https://m{s}.mapserver.mapy.cz/turist-m/{z}-{x}-{y}', { }).addTo(map).on('click', function() {highlightCipher("{{ .ID }}")}); {{ end }} {{ range .Ciphers.Simple }} - {{ if .Position.Point.IsZero }}{{ continue }}{{ end }} + {{ if .Position.Point.IsZero }}{{continue}}{{ end }} L.marker({{ .Position.Point | latlon }}, { title: "{{ .Name }}", icon: simpleIcon,