Skip to content

Commit

Permalink
fix: #9 do not print functions, use them directly
Browse files Browse the repository at this point in the history
Printing tags just renders them as a string.
  • Loading branch information
byashimov committed Sep 15, 2022
1 parent aacbe10 commit b0bb61d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/provider/template.go
Expand Up @@ -229,7 +229,7 @@ description: |-
{{ if .HasExample -}}
## Example Usage
{{ printf "{{tffile %q}}" .ExampleFile }}
{{ tffile .ExampleFile }}
{{- end }}
{{ .SchemaMarkdown | trimspace }}
Expand All @@ -239,7 +239,7 @@ description: |-
Import is supported using the following syntax:
{{ printf "{{codefile \"shell\" %q}}" .ImportFile }}
{{ codefile "shell %q" .ImportFile }}
{{- end }}
`

Expand All @@ -258,7 +258,7 @@ description: |-
{{ if .HasExample -}}
## Example Usage
{{ printf "{{tffile %q}}" .ExampleFile }}
{{ tffile .ExampleFile }}
{{- end }}
{{ .SchemaMarkdown | trimspace }}
Expand Down

0 comments on commit b0bb61d

Please sign in to comment.