Skip to content

Commit b0bb61d

Browse files
authored
fix: #9 do not print functions, use them directly
Printing tags just renders them as a string.
1 parent aacbe10 commit b0bb61d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/provider/template.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ description: |-
229229
{{ if .HasExample -}}
230230
## Example Usage
231231
232-
{{ printf "{{tffile %q}}" .ExampleFile }}
232+
{{ tffile .ExampleFile }}
233233
{{- end }}
234234
235235
{{ .SchemaMarkdown | trimspace }}
@@ -239,7 +239,7 @@ description: |-
239239
240240
Import is supported using the following syntax:
241241
242-
{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
242+
{{ codefile "shell %q" .ImportFile }}
243243
{{- end }}
244244
`
245245

@@ -258,7 +258,7 @@ description: |-
258258
{{ if .HasExample -}}
259259
## Example Usage
260260
261-
{{ printf "{{tffile %q}}" .ExampleFile }}
261+
{{ tffile .ExampleFile }}
262262
{{- end }}
263263
264264
{{ .SchemaMarkdown | trimspace }}

0 commit comments

Comments
 (0)