summaryrefslogtreecommitdiffstats
path: root/modules/markup/csv
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-04-13 15:06:31 +0800
committerGitHub <noreply@github.com>2021-04-13 15:06:31 +0800
commit66f0fd0959b293c01a7685e9d7858db1da4416da (patch)
treefbe5b537bbe9361ab3e7067c6d583230bf45db77 /modules/markup/csv
parentbf3e584de25b43ddc8fd12d1388fbd9b984f883b (diff)
downloadgitea-66f0fd0959b293c01a7685e9d7858db1da4416da.tar.gz
gitea-66f0fd0959b293c01a7685e9d7858db1da4416da.zip
Add NeedPostProcess for Parser interface to improve performance of csv render (#15153)
Diffstat (limited to 'modules/markup/csv')
-rw-r--r--modules/markup/csv/csv.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/markup/csv/csv.go b/modules/markup/csv/csv.go
index 430e759eb5..68c89166b5 100644
--- a/modules/markup/csv/csv.go
+++ b/modules/markup/csv/csv.go
@@ -28,6 +28,9 @@ func (Parser) Name() string {
return "csv"
}
+// NeedPostProcess implements markup.Parser
+func (Parser) NeedPostProcess() bool { return false }
+
// Extensions implements markup.Parser
func (Parser) Extensions() []string {
return []string{".csv", ".tsv"}