mirror of
https://github.com/go-gitea/gitea
synced 2024-11-05 01:34:25 +00:00
Backport #29653 by @yp05327 Fix #29506 Co-authored-by: yp05327 <576951401@qq.com>
This commit is contained in:
parent
76b6754c3a
commit
6651d2d87a
@ -93,8 +93,10 @@ func (Renderer) Render(ctx *markup.RenderContext, input io.Reader, output io.Wri
|
||||
if _, err := tmpBlock.WriteString(html.EscapeString(string(rawBytes))); err != nil {
|
||||
return err
|
||||
}
|
||||
_, err = tmpBlock.WriteString("</pre>")
|
||||
return err
|
||||
if _, err := tmpBlock.WriteString("</pre>"); err != nil {
|
||||
return err
|
||||
}
|
||||
return tmpBlock.Flush()
|
||||
}
|
||||
|
||||
rd, err := csv.CreateReaderAndDetermineDelimiter(ctx, bytes.NewReader(rawBytes))
|
||||
|
Loading…
Reference in New Issue
Block a user