Patch from Nathan Jones so that trailing whitespace after account names in a
transaction with no amount is not parsed as a special name. Fixes #3.
This commit is contained in:
parent
0e54ef9c08
commit
f3b182ca80
1 changed files with 2 additions and 1 deletions
|
|
@ -139,7 +139,8 @@ transaction_t * parse_transaction(char * line, account_t * account,
|
||||||
while (! in.eof()) {
|
while (! in.eof()) {
|
||||||
in.get(p);
|
in.get(p);
|
||||||
if (in.eof() || (std::isspace(p) &&
|
if (in.eof() || (std::isspace(p) &&
|
||||||
(p == '\t' || std::isspace(in.peek()))))
|
(p == '\t' || in.peek() == EOF ||
|
||||||
|
std::isspace(in.peek()))))
|
||||||
break;
|
break;
|
||||||
account_end++;
|
account_end++;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue