Remove trailing newline in render-link.html

This commit is contained in:
BBaoVanC 2021-10-07 17:09:10 -05:00
parent 01e89e0249
commit d803c74ef8
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A

View File

@ -1 +1 @@
<a href="{{ .Destination | safeURL }}"{{ with .Title}}title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }}target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a> <a href="{{ .Destination | safeURL }}"{{ with .Title}}title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }}target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>{{/* DO NOT REMOVE THE TRAILING NEWLINE HERE -- it prevents there from being whitespace in between the link and the next word/element (for example: if there's a period right after a link) */}}