From 8637dd6ccf7afc71d911cd66c4a55a1308596dbb Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 9 Jun 2010 06:45:07 -0400 Subject: New display flag AMOUNT_PRINT_ELIDE_COMMODITY_QUOTES This is used by reports like register and balance so that separated commodities without spaces in them needed be surrounded by quotes. It will still occur in most other places. Fixes #200 / F82CF11F-BFD9-4512-A562-202B04B68051 --- src/commodity.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/commodity.h') diff --git a/src/commodity.h b/src/commodity.h index ae7d9d66..42f15f33 100644 --- a/src/commodity.h +++ b/src/commodity.h @@ -391,10 +391,7 @@ public: return temp; } - void print(std::ostream& out) const { - out << symbol(); - } - + void print(std::ostream& out, bool elide_quotes = false) const; bool valid() const; struct compare_by_commodity { -- cgit v1.2.3