From 3dcfed2c4ccd543e803b088b42130d8f9fedc647 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 24 Feb 2006 09:33:22 +0000 Subject: (parse_amount): Don't interpret an initial opening parenthesis as inline math, but rather see it as introducing a value expression. --- textual.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 == '"') { -- cgit v1.2.3