Commit a20a50b0 authored by Rob Pike's avatar Rob Pike

\r is white space

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=27397
CL=27400
parent 9b3f4377
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment