Fixed a textual parsing bug.
This commit is contained in:
parent
aa3101f7ed
commit
b02c7ef8aa
4 changed files with 9 additions and 5 deletions
|
|
@ -11,7 +11,7 @@
|
|||
namespace ledger {
|
||||
|
||||
static unsigned long binary_magic_number = 0xFFEED765;
|
||||
static unsigned long format_version = 0x00020025;
|
||||
static unsigned long format_version = 0x00020026;
|
||||
|
||||
static account_t ** accounts;
|
||||
static account_t ** accounts_next;
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ(2.59)
|
||||
AC_INIT(ledger, 2.04, johnw@newartisans.com)
|
||||
AM_INIT_AUTOMAKE(ledger, 2.04)
|
||||
AC_INIT(ledger, 2.05, johnw@newartisans.com)
|
||||
AM_INIT_AUTOMAKE(ledger, 2.05)
|
||||
AC_CONFIG_SRCDIR([main.cc])
|
||||
AC_CONFIG_HEADER([acconf.h])
|
||||
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ(2.59)
|
||||
AC_INIT(ledger, 2.04, johnw@newartisans.com)
|
||||
AM_INIT_AUTOMAKE(ledger, 2.04)
|
||||
AC_INIT(ledger, 2.05, johnw@newartisans.com)
|
||||
AM_INIT_AUTOMAKE(ledger, 2.05)
|
||||
AC_CONFIG_SRCDIR([main.cc])
|
||||
AC_CONFIG_HEADER([acconf.h])
|
||||
|
||||
|
|
|
|||
|
|
@ -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 == '[')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue