Skip to content

Commit f987b9c

Browse files
authored
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 (golang/go#30436). * Replace fmt.Println with fmt.Printf for newline-ending string. This would otherwise be caught with the improved vet printf checker (golang/go#30436). * Avoid adding a redundant newline when printing weblistPageClosing.
1 parent f410f49 commit f987b9c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

internal/driver/testdata/pprof.cpu.flat.addresses.weblist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,3 @@ Duration: 10s, Total samples = 1.12s (11.20%)<br>Total: 1.12s</div><h2>line1000<
9999

100100
</body>
101101
</html>
102-

internal/report/source_html.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,4 @@ function pprof_toggle_asm(e) {
7272

7373
const weblistPageClosing = `
7474
</body>
75-
</html>
76-
`
75+
</html>`

0 commit comments

Comments
 (0)