Skip to content

Commit

Permalink
cmd/compile: fix misalignment in sources column of generated ssa.html
Browse files Browse the repository at this point in the history
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 golang#38612

Change-Id: I067ccbfa30d5de5be29aab9863bc1e21f6ded128
Reviewed-on: https://go-review.googlesource.com/c/go/+/229766
Reviewed-by: Josh Bleecher Snyder <[email protected]>
Run-TryBot: Josh Bleecher Snyder <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
  • Loading branch information
bradford-hamilton authored and josharian committed Apr 24, 2020
1 parent f5fcc9b commit d0ea533
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cmd/compile/internal/ssa/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ pre {
float: left;
overflow: hidden;
text-align: right;
margin-top: 7px;
}
.lines div {
Expand Down

0 comments on commit d0ea533

Please sign in to comment.