From bb0c5344145cd79fa54a92f236628eebbe6f2f68 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 26 Feb 2012 16:42:01 -0600 Subject: [PATCH] Revert behavior of 40ab81308025e9655074da37671c444b4257f867 --- src/print.cc | 9 ++++++--- test/baseline/opt-equity.test | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/print.cc b/src/print.cc index 6725a336..a90ea220 100644 --- a/src/print.cc +++ b/src/print.cc @@ -176,11 +176,14 @@ namespace { string amt; if (post->amount_expr) { amt = post->amount_expr->text(); - } - else if (! (count == 2 && index == 2 && + } else +#if 0 + if (! (count == 2 && index == 2 && (*xact.posts.begin())->amount.commodity() == post->amount.commodity() && - ! (*xact.posts.begin())->cost && ! post->cost)) { + ! (*xact.posts.begin())->cost && ! post->cost)) +#endif + { int amount_width = (report.HANDLER(amount_width_).specified ? report.HANDLER(amount_width_).value.to_int() : 12); diff --git a/test/baseline/opt-equity.test b/test/baseline/opt-equity.test index 90f4743a..d8695759 100644 --- a/test/baseline/opt-equity.test +++ b/test/baseline/opt-equity.test @@ -5,5 +5,5 @@ test equity assets 2007/02/02 Opening Balances Assets:Investments:Vanguard:VMMXX 0.350 VMMXX - Equity:Opening Balances + Equity:Opening Balances -0.350 VMMXX end test