From: Josh Bleecher Snyder Date: Thu, 27 Aug 2015 17:29:01 +0000 (-0700) Subject: [dev.ssa] cmd/compile: make block kinds clickable in html X-Git-Tag: go1.7beta1~1623^2^2~240 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=44d87035b65e9fb8fccfe9f8121276614112f629;p=gostls13.git [dev.ssa] cmd/compile: make block kinds clickable in html Change-Id: I113c07caf504cee66a81730da8830de6de098e49 Reviewed-on: https://go-review.googlesource.com/13981 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/cmd/compile/internal/ssa/html.go b/src/cmd/compile/internal/ssa/html.go index 5c23320680..44e4e19b77 100644 --- a/src/cmd/compile/internal/ssa/html.go +++ b/src/cmd/compile/internal/ssa/html.go @@ -379,7 +379,7 @@ func (b *Block) HTML() string { func (b *Block) LongHTML() string { // TODO: improve this for HTML? - s := b.Kind.String() + s := fmt.Sprintf("%s", html.EscapeString(b.String()), html.EscapeString(b.Kind.String())) if b.Control != nil { s += fmt.Sprintf(" %s", b.Control.HTML()) }