From 49e41445a6378949f520bfaf6989838361bb9550 Mon Sep 17 00:00:00 2001 From: Feuerfuchs Date: Mon, 17 Jun 2019 12:55:18 +0200 Subject: Fix indent bug --- .vscode/settings.json | 3 +++ template.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..8c45cda --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "go.formatTool": "goimports" +} \ No newline at end of file diff --git a/template.go b/template.go index 242d0a2..32b75be 100644 --- a/template.go +++ b/template.go @@ -21,7 +21,7 @@ var tpltext = ` {{- $content = printf "%s\n" $content -}} {{- end -}} {{- if .Link -}} - {{- $content = printf "%s%s" $content (printf "%s %s" .Type .Type .Link .Text) -}} + {{- $content = printf "%s%s" $content (printf "%s %s" .Type .Type .Link .Text) -}} {{- else -}} {{- $content = printf "%s%s" $content (printf " %s" .Text) -}} {{- end -}} -- cgit v1.2.3-70-g09d2