summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-02-24 09:33:22 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:25 -0400
commitfc8bbd5815e6f7ae3a84fd1320f2528673606780 (patch)
treeb0122acee4316d17c001d8a923acbbdac3a96e1c
parent0876d311578d4dcac91c11967ba18130de4b0ad6 (diff)
downloadfork-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.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/textual.cc b/textual.cc
index 5e397031..c8e5e0db 100644
--- a/textual.cc
+++ b/textual.cc
@@ -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 == '"') {