aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/html.go
diff options
context:
space:
mode:
authorBradford Lamson-Scribner <brad.lamson@gmail.com>2020-04-23 18:46:43 -0600
committerJosh Bleecher Snyder <josharian@gmail.com>2020-04-24 02:13:27 +0000
commitd0ea533c54092e034ab474691df56f8da05ed0d5 (patch)
tree15d387a764846f31eab5546d4d4c81679f28ef3d /src/cmd/compile/internal/ssa/html.go
parentf5fcc9b8e08aa94c1f8ad2b91f447e32940a5435 (diff)
downloadgo-d0ea533c54092e034ab474691df56f8da05ed0d5.tar.gz
go-d0ea533c54092e034ab474691df56f8da05ed0d5.zip
cmd/compile: fix misalignment in sources column of generated ssa.html
Fix regression where line numbers in the sources column of generated ssa.html output became misaligned with the source code. This was due to some new margins applied to certain h2 elements during the work to combine identical columns. Fixes #38612 Change-Id: I067ccbfa30d5de5be29aab9863bc1e21f6ded128 Reviewed-on: https://go-review.googlesource.com/c/go/+/229766 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com> Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/html.go')
-rw-r--r--src/cmd/compile/internal/ssa/html.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ssa/html.go b/src/cmd/compile/internal/ssa/html.go
index 730ec6dd3f..ba37a80412 100644
--- a/src/cmd/compile/internal/ssa/html.go
+++ b/src/cmd/compile/internal/ssa/html.go
@@ -143,6 +143,7 @@ pre {
float: left;
overflow: hidden;
text-align: right;
+ margin-top: 7px;
}
.lines div {