summaryrefslogtreecommitdiff
path: root/src/print.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-19 04:18:33 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-19 04:18:33 -0500
commitaee05dc7b7099d4bff8827e293e6b1e3442b9cd9 (patch)
treee8d510ddf3e7fa3f533f9652e92cde55f339c366 /src/print.cc
parent9097bc8cd3a19d98e271dd683986e3fc455da123 (diff)
downloadfork-ledger-aee05dc7b7099d4bff8827e293e6b1e3442b9cd9.tar.gz
fork-ledger-aee05dc7b7099d4bff8827e293e6b1e3442b9cd9.tar.bz2
fork-ledger-aee05dc7b7099d4bff8827e293e6b1e3442b9cd9.zip
print computed annotations if --generated
Diffstat (limited to 'src/print.cc')
-rw-r--r--src/print.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/print.cc b/src/print.cc
index 9e52ce95..79d83161 100644
--- a/src/print.cc
+++ b/src/print.cc
@@ -226,7 +226,8 @@ namespace {
std::ostringstream amt_str;
value_t(post->amount).print(amt_str, static_cast<int>(amount_width),
-1, AMOUNT_PRINT_RIGHT_JUSTIFY |
- AMOUNT_PRINT_NO_COMPUTED_ANNOTATIONS);
+ (report.HANDLED(generated) ? 0 :
+ AMOUNT_PRINT_NO_COMPUTED_ANNOTATIONS));
amt = amt_str.str();
}