Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
b3d8e6d7
Commit
b3d8e6d7
authored
Sep 26, 2011
by
Mike Samuel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exp/template/html: remove TODO comments that have been done or mooted
R=nigeltao CC=golang-dev
https://golang.org/cl/5128041
parent
ecda69e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
7 deletions
+0
-7
src/pkg/exp/template/html/transition.go
src/pkg/exp/template/html/transition.go
+0
-3
src/pkg/exp/template/html/url.go
src/pkg/exp/template/html/url.go
+0
-4
No files found.
src/pkg/exp/template/html/transition.go
View file @
b3d8e6d7
...
...
@@ -9,9 +9,6 @@ import (
"strings"
)
// TODO: ensure transition error messages contain template name and ideally
// line info.
// transitionFunc is the array of context transition functions for text nodes.
// A transition function takes a context and template text input, and returns
// the updated context and the number of bytes consumed from the front of the
...
...
src/pkg/exp/template/html/url.go
View file @
b3d8e6d7
...
...
@@ -21,13 +21,9 @@ func urlFilter(args ...interface{}) string {
if
i
>=
0
&&
strings
.
IndexRune
(
s
[
:
i
],
'/'
)
<
0
{
protocol
:=
strings
.
ToLower
(
s
[
:
i
])
if
protocol
!=
"http"
&&
protocol
!=
"https"
&&
protocol
!=
"mailto"
{
// Return a value that someone investigating a bug
// report can put into a search engine.
return
"#"
+
filterFailsafe
}
}
// TODO: Once we handle <style>#id { background: url({{.Img}}) }</style>
// we will need to stop this from HTML escaping and pipeline sanitizers.
return
s
}
...
...
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