From a20a50b0b261450a46cff105d923cca78440b817 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 13 Apr 2009 19:27:35 -0700 Subject: [PATCH] \r is white space R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=27397 CL=27400 --- src/lib/template/template.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/template/template.go b/src/lib/template/template.go index 824b9d626b2..a40a8b86ca7 100644 --- a/src/lib/template/template.go +++ b/src/lib/template/template.go @@ -99,7 +99,7 @@ func (t *template) error(err *os.Error, args ...) { } func white(c uint8) bool { - return c == ' ' || c == '\t' || c == '\n' + return c == ' ' || c == '\t' || c == '\r' || c == '\n' } func (t *template) execute() @@ -126,7 +126,7 @@ Loop: *t.linenum++; i++; break Loop; - case ' ', '\t': + case ' ', '\t', '\r': // white space, do nothing case '{': if brace {