summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-27 02:41:50 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-27 02:41:50 -0400
commita8e2a674a85b71c84c044c6cfa140e2bbfb58a4b (patch)
treeb957cbecd5f2499eb4219f6802cc20d380de4eb8 /src/textual.cc
parent6d315840a8e98ab7dbe28a76f23c734d09c33bc5 (diff)
downloadfork-ledger-a8e2a674a85b71c84c044c6cfa140e2bbfb58a4b.tar.gz
fork-ledger-a8e2a674a85b71c84c044c6cfa140e2bbfb58a4b.tar.bz2
fork-ledger-a8e2a674a85b71c84c044c6cfa140e2bbfb58a4b.zip
Fixes to entry note parsing
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/textual.cc b/src/textual.cc
index bc221671..a804fb1c 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -1172,8 +1172,9 @@ xact_t * instance_t::parse_xact(char * line,
// Parse the description text
if (next && *next) {
+ char * p = next_element(next, true);
xact->payee = next;
- next = next_element(next, true);
+ next = p;
} else {
xact->payee = _("<Unspecified payee>");
}
@@ -1181,7 +1182,7 @@ xact_t * instance_t::parse_xact(char * line,
// Parse the xact note
if (next && *next == ';')
- xact->append_note(next, current_year);
+ xact->append_note(++next, current_year);
TRACE_STOP(xact_text, 1);