diff options
Diffstat (limited to 'src/pkg/template/format.go')
-rw-r--r-- | src/pkg/template/format.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pkg/template/format.go b/src/pkg/template/format.go index a0468e9d4..bb1ff915b 100644 --- a/src/pkg/template/format.go +++ b/src/pkg/template/format.go @@ -18,7 +18,7 @@ import ( // You can override the default formatter by storing your default // under the name "" in your custom formatter map. func StringFormatter(w io.Writer, value interface{}, format string) { - fmt.Fprint(w, value); + fmt.Fprint(w, value) } var ( @@ -37,17 +37,17 @@ func HTMLEscape(w io.Writer, s []byte) { for i, c := range s { switch c { case '"': - esc = esc_quot; + esc = esc_quot case '\'': - esc = esc_apos; + esc = esc_apos case '&': - esc = esc_amp; + esc = esc_amp case '<': - esc = esc_lt; + esc = esc_lt case '>': - esc = esc_gt; + esc = esc_gt default: - continue; + continue } w.Write(s[last:i]); w.Write(esc); |