Skip to content

Error closing tag with gotmplfmt #14

Description

@Marzal

Hi, I have just start using gotmplfmt. And it did a great job formatting my templates. But I keep having an error.

On

			<podcast:trailer
			{{ printf "pubdate=%q" (.Date.Format .Site.Params.date_format_RSS) | safeHTMLAttr }}
				{{ if .Params.podcast.mlength -}}
					url="{{ .Params.podcast.URLprefix | default .CurrentSection.Params.URLprefix }}{{ .Params.podcast.URLhost | default .CurrentSection.Params.URLhost }}{{ .Params.podcast.audio }}.mp3"
					length="{{ .Params.podcast.mlength }}" type="audio/mpeg"
				{{- end }}
				season="{{ .Params.podcast.trailer }}"
			>{{ $pg.Params.title | truncate 128 }}</podcast:trailer>

It keeps adding </podcast> instead of respecting the </podcast:trailer>.
></podcast>{{ $pg.Params.title | truncate 128 }}</podcast:trailer>

Any pointers if this can be fixed on my part/code?

PD: The output fixed -> https://kdeexpress.gitlab.io/feed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions