diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-09 09:55:37 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-09 09:55:37 -0400 |
commit | 556211e623cad88213e5087b5c9c36e754d9aa02 (patch) | |
tree | 9b4d0197448cd8587e11f5e3e65214e9dc80e3a7 /src/amount.cc | |
parent | 14476a63f4abbdce5311ace031b7345a34af060b (diff) | |
parent | c28fad384c28fb929fc8ea69854496141bdf306a (diff) | |
download | ledger-556211e623cad88213e5087b5c9c36e754d9aa02.tar.gz ledger-556211e623cad88213e5087b5c9c36e754d9aa02.tar.bz2 ledger-556211e623cad88213e5087b5c9c36e754d9aa02.zip |
Merge branch 'next'
Diffstat (limited to 'src/amount.cc')
-rw-r--r-- | src/amount.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amount.cc b/src/amount.cc index 105b54ef..01caf4ac 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -1233,7 +1233,7 @@ void amount_t::print(std::ostream& _out, const uint_least8_t flags) const commodity_t& comm(commodity()); if (! comm.has_flags(COMMODITY_STYLE_SUFFIXED)) { - comm.print(out); + comm.print(out, flags & AMOUNT_PRINT_ELIDE_COMMODITY_QUOTES); if (comm.has_flags(COMMODITY_STYLE_SEPARATED)) out << " "; } @@ -1244,7 +1244,7 @@ void amount_t::print(std::ostream& _out, const uint_least8_t flags) const if (comm.has_flags(COMMODITY_STYLE_SUFFIXED)) { if (comm.has_flags(COMMODITY_STYLE_SEPARATED)) out << " "; - comm.print(out); + comm.print(out, flags & AMOUNT_PRINT_ELIDE_COMMODITY_QUOTES); } // If there are any annotations associated with this commodity, output them |