Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
go
Commits
a20a50b0
Commit
a20a50b0
authored
15 years ago
by
Rob Pike
Browse files
Options
Download
Email Patches
Plain Diff
\r is white space
R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=27397 CL=27400
parent
9b3f4377
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/lib/template/template.go
src/lib/template/template.go
+2
-2
No files found.
src/lib/template/template.go
View file @
a20a50b0
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment