Procházet zdrojové kódy

Render full plain readme. (#17083)

tags/v1.16.0-rc1
KN4CK3R před 2 roky
rodič
revize
8fb3a50a37
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4
    0
      routers/web/repo/view.go

+ 4
- 0
routers/web/repo/view.go Zobrazit soubor

@@ -353,6 +353,10 @@ func renderDirectory(ctx *context.Context, treeLink string) {
}
} else {
ctx.Data["IsRenderedHTML"] = true
buf, err = ioutil.ReadAll(rd)
if err != nil {
log.Error("ReadAll failed: %v", err)
}
ctx.Data["FileContent"] = strings.ReplaceAll(
gotemplate.HTMLEscapeString(string(buf)), "\n", `<br>`,
)

Načítá se…
Zrušit
Uložit