summaryrefslogtreecommitdiff
path: root/src/commodity.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-01 17:44:28 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-01 17:56:41 -0400
commit038c24357e85b3b33460f3b8d41b1ef4ab0ed901 (patch)
tree1c0b5770843a7dae763f5f0264219a060e34fb96 /src/commodity.cc
parentd513c71236b3e91bb999158829250e7194a9d56e (diff)
downloadfork-ledger-038c24357e85b3b33460f3b8d41b1ef4ab0ed901.tar.gz
fork-ledger-038c24357e85b3b33460f3b8d41b1ef4ab0ed901.tar.bz2
fork-ledger-038c24357e85b3b33460f3b8d41b1ef4ab0ed901.zip
Changed --european option to --decimal-comma
Fixes #211 / 1736ACA5-5DE6-4826-AEB4-DB5B2A2217AC
Diffstat (limited to 'src/commodity.cc')
-rw-r--r--src/commodity.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/commodity.cc b/src/commodity.cc
index b4220354..1b85910f 100644
--- a/src/commodity.cc
+++ b/src/commodity.cc
@@ -38,7 +38,7 @@
namespace ledger {
-bool commodity_t::european_by_default = false;
+bool commodity_t::decimal_comma_by_default = false;
void commodity_t::history_t::add_price(commodity_t& source,
const datetime_t& date,
@@ -663,10 +663,10 @@ void to_xml(std::ostream& out, const commodity_t& comm,
push_xml x(out, "commodity", true);
out << " flags=\"";
- if (! (comm.has_flags(COMMODITY_STYLE_SUFFIXED))) out << 'P';
- if (comm.has_flags(COMMODITY_STYLE_SEPARATED)) out << 'S';
- if (comm.has_flags(COMMODITY_STYLE_THOUSANDS)) out << 'T';
- if (comm.has_flags(COMMODITY_STYLE_EUROPEAN)) out << 'E';
+ if (! (comm.has_flags(COMMODITY_STYLE_SUFFIXED))) out << 'P';
+ if (comm.has_flags(COMMODITY_STYLE_SEPARATED)) out << 'S';
+ if (comm.has_flags(COMMODITY_STYLE_THOUSANDS)) out << 'T';
+ if (comm.has_flags(COMMODITY_STYLE_DECIMAL_COMMA)) out << 'D';
out << '"';
x.close_attrs();