From b0bb61d7dbb8820d0d6fe73dfa781f925dd84ea9 Mon Sep 17 00:00:00 2001 From: Murad Biashimov Date: Thu, 15 Sep 2022 14:20:28 +0200 Subject: [PATCH] fix: #9 do not print functions, use them directly Printing tags just renders them as a string. --- internal/provider/template.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/provider/template.go b/internal/provider/template.go index dcc1e541..870b1363 100644 --- a/internal/provider/template.go +++ b/internal/provider/template.go @@ -229,7 +229,7 @@ description: |- {{ if .HasExample -}} ## Example Usage -{{ printf "{{tffile %q}}" .ExampleFile }} +{{ tffile .ExampleFile }} {{- end }} {{ .SchemaMarkdown | trimspace }} @@ -239,7 +239,7 @@ description: |- Import is supported using the following syntax: -{{ printf "{{codefile \"shell\" %q}}" .ImportFile }} +{{ codefile "shell %q" .ImportFile }} {{- end }} ` @@ -258,7 +258,7 @@ description: |- {{ if .HasExample -}} ## Example Usage -{{ printf "{{tffile %q}}" .ExampleFile }} +{{ tffile .ExampleFile }} {{- end }} {{ .SchemaMarkdown | trimspace }}