aboutsummaryrefslogtreecommitdiff
path: root/modules/csv/csv.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/csv/csv.go')
-rw-r--r--modules/csv/csv.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/csv/csv.go b/modules/csv/csv.go
index 0dd54271f..fe0c35096 100644
--- a/modules/csv/csv.go
+++ b/modules/csv/csv.go
@@ -54,7 +54,7 @@ func CreateReaderAndDetermineDelimiter(ctx *markup.RenderContext, rd io.Reader)
func determineDelimiter(ctx *markup.RenderContext, data []byte) rune {
extension := ".csv"
if ctx != nil {
- extension = strings.ToLower(filepath.Ext(ctx.Filename))
+ extension = strings.ToLower(filepath.Ext(ctx.RelativePath))
}
var delimiter rune