You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The go/doc ToHTML does not convert URLs to links as described in the function
documentation and implemented in r60.3.
What steps will reproduce the problem?
Run the following application:
package main
import (
"go/doc"
"os"
)
func main() {
doc.ToHTML(os.Stdout, "http://www.google.com/";, nil)
}
What is the expected output?
<p>
<a
href="http://www.google.com/";>http://www.google.com/<;/a></p>
What do you see instead?
<p>
http://www.google.com/<;/p>
Which compiler are you using (5g, 6g, 8g, gccgo)?
6g
Which operating system are you using?
Lion
Which revision are you using? (hg identify)
1b6e7832103e tip
Please provide any additional information below.
The following application produces the expected output on r60.3.
package main
import (
"go/doc"
"os"
)
func main() {
doc.ToHTML(os.Stdout, []byte("http://www.google.com/";), nil)
}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: