From b02c7ef8aad04e910c228ba8eadaf8a85283cc52 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 8 Dec 2004 05:21:30 +0000 Subject: Fixed a textual parsing bug. --- textual.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'textual.cc') diff --git a/textual.cc b/textual.cc index 783cc5de..33b7971b 100644 --- a/textual.cc +++ b/textual.cc @@ -134,6 +134,10 @@ transaction_t * parse_transaction(char * line, account_t * account) } } + char * q = p + std::strlen(p) - 1; + while (q >= p && std::isspace(*q)) + *q-- = '\0'; + if (*p == '[' || *p == '(') { xact->flags |= TRANSACTION_VIRTUAL; if (*p == '[') -- cgit v1.2.3