From ab1c23f9a3b8f34874df530641eefc01fb427951 Mon Sep 17 00:00:00 2001 From: aquilax Date: Sun, 20 Dec 2015 11:06:46 +0100 Subject: [PATCH] Moved comment --- parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.go b/parse.go index 33f0c66e..42a2c995 100644 --- a/parse.go +++ b/parse.go @@ -26,6 +26,7 @@ func ParseLedger(ledgerReader io.Reader) (generalLedger []*Transaction, err erro var lineCount int for scanner.Scan() { line = scanner.Text() + // remove heading and tailing space from the line trimmedLine := strings.Trim(line, whitespace) lineCount++ if strings.HasPrefix(line, ";") { @@ -53,7 +54,6 @@ func ParseLedger(ledgerReader io.Reader) (generalLedger []*Transaction, err erro trans = &Transaction{Payee: payeeString, Date: transDate} } else { var accChange Account - // remove heading and tailing space from the line lineSplit := strings.Split(trimmedLine, " ") nonEmptyWords := []string{} for _, word := range lineSplit {