diff options
author | John Wiegley <johnw@newartisans.com> | 2006-02-24 09:33:22 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:25 -0400 |
commit | fc8bbd5815e6f7ae3a84fd1320f2528673606780 (patch) | |
tree | b0122acee4316d17c001d8a923acbbdac3a96e1c | |
parent | 0876d311578d4dcac91c11967ba18130de4b0ad6 (diff) | |
download | fork-ledger-fc8bbd5815e6f7ae3a84fd1320f2528673606780.tar.gz fork-ledger-fc8bbd5815e6f7ae3a84fd1320f2528673606780.tar.bz2 fork-ledger-fc8bbd5815e6f7ae3a84fd1320f2528673606780.zip |
(parse_amount): Don't interpret an initial opening parenthesis as
inline math, but rather see it as introducing a value expression.
-rw-r--r-- | textual.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -131,7 +131,7 @@ void parse_amount(const char * text, amount_t& amt, unsigned short flags, { char * altbuf = NULL; - if (*text) { + if (*text && *text != '(') { bool in_quote = false; for (const char * p = text + 1; *p; p++) if (*p == '"') { |