summaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-09 06:45:07 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-09 06:45:07 -0400
commit8637dd6ccf7afc71d911cd66c4a55a1308596dbb (patch)
tree64a6f4bdadfb59fe25eec507b6b9024653087ee0 /src/amount.h
parentda2f415f148b69898d71405235eaa8b36aa21b3b (diff)
downloadfork-ledger-8637dd6ccf7afc71d911cd66c4a55a1308596dbb.tar.gz
fork-ledger-8637dd6ccf7afc71d911cd66c4a55a1308596dbb.tar.bz2
fork-ledger-8637dd6ccf7afc71d911cd66c4a55a1308596dbb.zip
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
Diffstat (limited to 'src/amount.h')
-rw-r--r--src/amount.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amount.h b/src/amount.h
index 09c9dc49..be4c5e45 100644
--- a/src/amount.h
+++ b/src/amount.h
@@ -680,6 +680,7 @@ public:
#define AMOUNT_PRINT_RIGHT_JUSTIFY 0x01
#define AMOUNT_PRINT_COLORIZE 0x02
#define AMOUNT_PRINT_NO_COMPUTED_ANNOTATIONS 0x04
+#define AMOUNT_PRINT_ELIDE_COMMODITY_QUOTES 0x08
void print(std::ostream& out,
const uint_least8_t flags = AMOUNT_PRINT_NO_FLAGS) const;