fix: replaced calls of fmt.Fprintf with fmt.Fprint to prevent stupid inserts.

This commit is contained in:
Andrey Parhomenko 2024-03-24 14:09:24 +05:00
parent 83eae7eb87
commit e26dca342f
2 changed files with 5 additions and 2 deletions

3
install.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
#
go install ./cmd/rwiki

View file

@ -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
} }