diff options
author | John Wiegley <johnw@newartisans.com> | 2004-12-08 05:21:30 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:40:48 -0400 |
commit | b02c7ef8aad04e910c228ba8eadaf8a85283cc52 (patch) | |
tree | 89d2bccc94978ee5b994e032f2c0541f0fc47a2b | |
parent | aa3101f7ed432fce999383f64df62a00ed713884 (diff) | |
download | fork-ledger-b02c7ef8aad04e910c228ba8eadaf8a85283cc52.tar.gz fork-ledger-b02c7ef8aad04e910c228ba8eadaf8a85283cc52.tar.bz2 fork-ledger-b02c7ef8aad04e910c228ba8eadaf8a85283cc52.zip |
Fixed a textual parsing bug.
-rw-r--r-- | binary.cc | 2 | ||||
-rw-r--r-- | configure.in | 4 | ||||
-rw-r--r-- | configure.lt | 4 | ||||
-rw-r--r-- | textual.cc | 4 |
4 files changed, 9 insertions, 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; diff --git a/configure.in b/configure.in index ca598102..9a4f7823 100644 --- a/configure.in +++ b/configure.in @@ -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]) diff --git a/configure.lt b/configure.lt index 606086d3..7458aa29 100644 --- a/configure.lt +++ b/configure.lt @@ -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 == '[') |