Conditional statements misaligned due to formatter breaking lines
gcushen opened this issue · comments
Geo commented
Input
{{ if not .Lastmod.IsZero }}<meta property="article:modified_time" content="{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}">{{ end }}
Output
{{ if not .Lastmod.IsZero }}
<meta property="article:modified_time" content="{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}"
/>{{ end }}
{{ end }}
is now misaligned with {{ if ... }}
which can give the appearance that the rest of the file is within the IF statement.
Line Width Setting
printWidth: 120
Version: 0.0.10
Niklas commented