]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: fix misalignment in sources column of generated ssa.html
authorBradford Lamson-Scribner <brad.lamson@gmail.com>
Fri, 24 Apr 2020 00:46:43 +0000 (18:46 -0600)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 24 Apr 2020 02:13:27 +0000 (02:13 +0000)
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>

src/cmd/compile/internal/ssa/html.go

index 730ec6dd3f67be2885be87bd50634c1e8be8cd0f..ba37a804123919009630c8808464f2acaad1db02 100644 (file)
@@ -143,6 +143,7 @@ pre {
     float: left;
     overflow: hidden;
     text-align: right;
+    margin-top: 7px;
 }
 
 .lines div {