{{- $input := trim .Inner " \t\r\n" -}} {{- $lines := split $input "\n" -}} {{- $slash := false -}}
    {{- range $line := $lines -}}
        {{- $line = trim $line " \t\r\n" -}}
        {{- if ne $line "" -}}
            {{- if not $slash -}}
                {{ $line }}
{{- else -}} {{ $line }}
{{- end -}} {{- $slash = hasSuffix $line "\\" -}} {{- end -}} {{- end -}}