commit | f987b9c94b318d4bd026dcc7892f7f1fab6eadab | [log] [tgz] |
---|---|---|
author | Zvonimir <zpavlinovic@google.com> | Wed Nov 03 21:45:39 2021 -0700 |
committer | GitHub <noreply@github.com> | Wed Nov 03 21:45:39 2021 -0700 |
tree | 918a4508a059c07e73836fb40f2c7819cef1cbcb | |
parent | f410f490c7b684609546e168a4e241fed33171b5 [diff] |
Avoid adding a redundant newline when printing weblistPageClosing (#665) * Replace fmt.Println with fmt.Printf for newline-ending string. This would otherwise be caught with the improved vet printf checker (https://github.com/golang/go/issues/30436). * Replace fmt.Println with fmt.Printf for newline-ending string. This would otherwise be caught with the improved vet printf checker (https://github.com/golang/go/issues/30436). * Avoid adding a redundant newline when printing weblistPageClosing.
diff --git a/internal/driver/testdata/pprof.cpu.flat.addresses.weblist b/internal/driver/testdata/pprof.cpu.flat.addresses.weblist index 2eb6b7d..d8446c8 100644 --- a/internal/driver/testdata/pprof.cpu.flat.addresses.weblist +++ b/internal/driver/testdata/pprof.cpu.flat.addresses.weblist
@@ -99,4 +99,3 @@ </body> </html> -
diff --git a/internal/report/source_html.go b/internal/report/source_html.go index 17c9f6e..851693f 100644 --- a/internal/report/source_html.go +++ b/internal/report/source_html.go
@@ -72,5 +72,4 @@ const weblistPageClosing = ` </body> -</html> -` +</html>`