fix: replaced calls of fmt.Fprintf with fmt.Fprint to prevent stupid inserts.
This commit is contained in:
parent
83eae7eb87
commit
e26dca342f
2 changed files with 5 additions and 2 deletions
3
install.sh
Executable file
3
install.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
go install ./cmd/rwiki
|
|
@ -153,8 +153,8 @@ func (srv *Server) ProcessToHtml(urlPath, filePath string, bts []byte) ([]byte,
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Fprint(&b, "<main>")
|
fmt.Fprint(&b, "<main>")
|
||||||
fmt.Fprintf(&b, string(main_section))
|
fmt.Fprint(&b, string(main_section))
|
||||||
fmt.Fprintf(&b, "</main>")
|
fmt.Fprint(&b, "</main>")
|
||||||
fmt.Fprint(&b, srv.pageFooter())
|
fmt.Fprint(&b, srv.pageFooter())
|
||||||
return b.Bytes(), nil
|
return b.Bytes(), nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue