mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
tpl: Use consistent delimiter spacing in examples
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
75f782a5a7
commit
b8d5c378ba
@@ -45,11 +45,11 @@ func init() {
|
||||
[]string{"htmlEscape"},
|
||||
[][2]string{
|
||||
{
|
||||
`{{ htmlEscape "Cathal Garvey & The Sunshine Band <cathal@foo.bar>" | safeHTML}}`,
|
||||
`{{ htmlEscape "Cathal Garvey & The Sunshine Band <cathal@foo.bar>" | safeHTML }}`,
|
||||
`Cathal Garvey & The Sunshine Band <cathal@foo.bar>`,
|
||||
},
|
||||
{
|
||||
`{{ htmlEscape "Cathal Garvey & The Sunshine Band <cathal@foo.bar>"}}`,
|
||||
`{{ htmlEscape "Cathal Garvey & The Sunshine Band <cathal@foo.bar>" }}`,
|
||||
`Cathal Garvey &amp; The Sunshine Band &lt;cathal@foo.bar&gt;`,
|
||||
},
|
||||
{
|
||||
@@ -63,15 +63,15 @@ func init() {
|
||||
[]string{"htmlUnescape"},
|
||||
[][2]string{
|
||||
{
|
||||
`{{ htmlUnescape "Cathal Garvey & The Sunshine Band <cathal@foo.bar>" | safeHTML}}`,
|
||||
`{{ htmlUnescape "Cathal Garvey & The Sunshine Band <cathal@foo.bar>" | safeHTML }}`,
|
||||
`Cathal Garvey & The Sunshine Band <cathal@foo.bar>`,
|
||||
},
|
||||
{
|
||||
`{{"Cathal Garvey &amp; The Sunshine Band &lt;cathal@foo.bar&gt;" | htmlUnescape | htmlUnescape | safeHTML}}`,
|
||||
`{{ "Cathal Garvey &amp; The Sunshine Band &lt;cathal@foo.bar&gt;" | htmlUnescape | htmlUnescape | safeHTML }}`,
|
||||
`Cathal Garvey & The Sunshine Band <cathal@foo.bar>`,
|
||||
},
|
||||
{
|
||||
`{{"Cathal Garvey &amp; The Sunshine Band &lt;cathal@foo.bar&gt;" | htmlUnescape | htmlUnescape }}`,
|
||||
`{{ "Cathal Garvey &amp; The Sunshine Band &lt;cathal@foo.bar&gt;" | htmlUnescape | htmlUnescape }}`,
|
||||
`Cathal Garvey & The Sunshine Band <cathal@foo.bar>`,
|
||||
},
|
||||
{
|
||||
@@ -84,7 +84,7 @@ func init() {
|
||||
ns.AddMethodMapping(ctx.Markdownify,
|
||||
[]string{"markdownify"},
|
||||
[][2]string{
|
||||
{`{{ .Title | markdownify}}`, `<strong>BatMan</strong>`},
|
||||
{`{{ .Title | markdownify }}`, `<strong>BatMan</strong>`},
|
||||
},
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user