mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-11 18:14:15 +01:00
Backport #29653 by @yp05327 Fix #29506 Co-authored-by: yp05327 <576951401@qq.com> (cherry picked from commit 6651d2d87aa4af96bf2c992e3ecae6a290d07496)
This commit is contained in:
parent
bd0978ce72
commit
e151e04673
1 changed files with 4 additions and 2 deletions
|
@ -93,9 +93,11 @@ func (Renderer) Render(ctx *markup.RenderContext, input io.Reader, output io.Wri
|
||||||
if _, err := tmpBlock.WriteString(html.EscapeString(string(rawBytes))); err != nil {
|
if _, err := tmpBlock.WriteString(html.EscapeString(string(rawBytes))); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
_, err = tmpBlock.WriteString("</pre>")
|
if _, err := tmpBlock.WriteString("</pre>"); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
return tmpBlock.Flush()
|
||||||
|
}
|
||||||
|
|
||||||
rd, err := csv.CreateReaderAndDetermineDelimiter(ctx, bytes.NewReader(rawBytes))
|
rd, err := csv.CreateReaderAndDetermineDelimiter(ctx, bytes.NewReader(rawBytes))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue