From a808d57296900359528dd0877a99b2f5d2de6a2f Mon Sep 17 00:00:00 2001 From: "Jip J. Dekker" Date: Sun, 20 Mar 2016 23:39:23 +0100 Subject: [PATCH] Fixes counting mistake in the outputPathfunction --- compiler/file_discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/file_discovery.go b/compiler/file_discovery.go index bc42582..61bf5ea 100644 --- a/compiler/file_discovery.go +++ b/compiler/file_discovery.go @@ -69,6 +69,6 @@ func outputPath(source string, opts *settings.Settings) string { if dot == -1 { log.WithFields(log.Fields{"path": source}).Error("Unable to compute output path") } - file = file[:dot] + "pdf" + file = file[:dot+1] + "pdf" return filepath.Join(opts.OutputDir, file) }