summaryrefslogtreecommitdiff
path: root/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-08-22 08:49:53 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:17 -0400
commit6af2a5d9ba33da382490bc33a2afb83d990b27b1 (patch)
treeeed6317c6455c389dca52bfe34df47cdf42d550e /textual.cc
parentd98a13da0654d1dfce31d638678efd8504320ba8 (diff)
downloadfork-ledger-6af2a5d9ba33da382490bc33a2afb83d990b27b1.tar.gz
fork-ledger-6af2a5d9ba33da382490bc33a2afb83d990b27b1.tar.bz2
fork-ledger-6af2a5d9ba33da382490bc33a2afb83d990b27b1.zip
(parse_entry): Removed "single line" transaction parsing and went back
to 2.3 behavior (where transactions always appear after the line containing the date and payee).
Diffstat (limited to 'textual.cc')
-rw-r--r--textual.cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/textual.cc b/textual.cc
index de4d32e4..1eb3ea9b 100644
--- a/textual.cc
+++ b/textual.cc
@@ -329,16 +329,7 @@ entry_t * parse_entry(std::istream& in, char * line, account_t * master,
// Parse the description text
- if (next) {
- char * first = next_element(next, true);
- curr->payee = next;
-
- if (first)
- if (transaction_t * xact = parse_transaction(first, master))
- curr->add_transaction(xact);
- } else {
- curr->payee = "<Unspecified payee>";
- }
+ curr->payee = next ? next : "<Unspecified payee>";
TIMER_STOP(entry_details);