summaryrefslogtreecommitdiff
path: root/csv.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-20 05:03:54 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-20 05:03:54 -0400
commit52fc9f2e4499e75d17e7f12d32a8391054d8634a (patch)
tree164b6b4cdb6717f2df7d154793499e90bdd3ae3e /csv.cc
parent59f6ffb863b7121b8a49c13dd64f9943ddaf7ed0 (diff)
downloadledger-52fc9f2e4499e75d17e7f12d32a8391054d8634a.tar.gz
ledger-52fc9f2e4499e75d17e7f12d32a8391054d8634a.tar.bz2
ledger-52fc9f2e4499e75d17e7f12d32a8391054d8634a.zip
Brought in the final round of 3.0 code, although it does not compile yet:
report, session, parts of xpath, main, journal, option.
Diffstat (limited to 'csv.cc')
-rw-r--r--csv.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/csv.cc b/csv.cc
index 6a94ec4b..d3c3faf7 100644
--- a/csv.cc
+++ b/csv.cc
@@ -87,7 +87,8 @@ void format_csv_transactions::operator()(transaction_t& xact)
}
out << ',';
- write_escaped_string(out, xact.entry->code);
+ if (xact.entry->code)
+ write_escaped_string(out, *xact.entry->code);
out << ',';
{