From 487ea6a2171ec70b8ee0ff147a44abb6d89679dc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 30 Sep 2003 20:18:52 +0000 Subject: *** empty log message *** --- parse.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'parse.cc') diff --git a/parse.cc b/parse.cc index cfca3b5f..3a6430bb 100644 --- a/parse.cc +++ b/parse.cc @@ -10,6 +10,11 @@ static char * next_element(char * buf, bool variable = false) { char * p; + // Convert any tabs to spaces, for simplicity's sake + for (p = buf; *p; p++) + if (*p == '\t') + *p = ' '; + if (variable) p = std::strstr(buf, " "); else @@ -226,6 +231,8 @@ bool parse_ledger(std::istream& in) #endif xact->acct = find_account(p); + xact->acct->balance.credit(xact->cost); + curr->xacts.push_back(xact); #ifdef HUQUQULLAH -- cgit v1.2.3