Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
c1ed7d7d
Commit
c1ed7d7d
authored
Apr 14, 2009
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable test and fix bug in white space before {
R=rsc DELTA=6 (0 added, 0 deleted, 6 changed) OCL=27404 CL=27404
parent
fa7be65b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
template.go
src/lib/template/template.go
+1
-1
template_test.go
src/lib/template/template_test.go
+5
-5
No files found.
src/lib/template/template.go
View file @
c1ed7d7d
...
@@ -141,7 +141,7 @@ Loop:
...
@@ -141,7 +141,7 @@ Loop:
if
trim_white
&&
only_white
{
if
trim_white
&&
only_white
{
start
=
i
;
start
=
i
;
}
}
}
else
if
i
>
t
.
p
+
1
{
// have some text accumulated so stop before '{'
}
else
if
i
>
t
.
p
{
// have some text accumulated so stop before '{'
break
Loop
;
break
Loop
;
}
}
brace
=
true
;
brace
=
true
;
...
...
src/lib/template/template_test.go
View file @
c1ed7d7d
...
@@ -158,11 +158,11 @@ var tests = []*Test {
...
@@ -158,11 +158,11 @@ var tests = []*Test {
},
},
// Bugs
// Bugs
//
&Test{
&
Test
{
// "{.section data}{.end} {head
er}\n",
"{.section data}{.end} {integ
er}
\n
"
,
//
//
" 77\n"
" 77
\n
"
//
},
},
}
}
func
TestAll
(
t
*
testing
.
T
)
{
func
TestAll
(
t
*
testing
.
T
)
{
...
...
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