Skip to content

go/doc: ToHTML fails on wikipedia ( ) urls #5043

@dgryski

Description

@dgryski
If possible, include a link to a program on play.golang.org.
1. Calling go/doc.ToHTML on text containing a URL with ()s fails to turn the entire URL
into a link.
2. http://play.golang.org/p/nEooaMLM8x

What is the expected output?
The wikipedia link to Camellia_(cipher) should be entirely highlighted.  

What do you see instead?
Instead, only the link to up the underscore is turned into a link.

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g.

Which operating system are you using?
Linux.


Which version are you using?  (run 'go version')
go version devel +2bd4d868a758 Wed Mar 13 02:40:56 2013 +0800 linux/amd64

Please provide any additional information below.
This makes ugly links on godoc.org .

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions