summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-03-07 22:47:07 -0500
committerJohn Wiegley <johnw@newartisans.com>2010-03-08 01:11:48 -0500
commit75b7294a6db10e7f7b18b6aeef1aa0f568124a1d (patch)
tree0fecbc12acaacb33cf3c241c536de3347d2742ed /src/xact.cc
parent7e79cd82cd4ad5f87f40e6beebdb53e65bb11168 (diff)
downloadfork-ledger-75b7294a6db10e7f7b18b6aeef1aa0f568124a1d.tar.gz
fork-ledger-75b7294a6db10e7f7b18b6aeef1aa0f568124a1d.tar.bz2
fork-ledger-75b7294a6db10e7f7b18b6aeef1aa0f568124a1d.zip
Rewrite the "print" command as a custom function
There ended up being too many corner cases for the generalized formatter to handle.
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xact.cc b/src/xact.cc
index f78ea301..1a022387 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -755,7 +755,7 @@ void to_xml(std::ostream& out, const xact_t& xact)
if (xact.metadata) {
push_xml y(out, "metadata");
foreach (const item_t::string_map::value_type& pair, *xact.metadata) {
- if (pair.second) {
+ if (pair.second.first) {
push_xml z(out, "variable");
{
push_xml w(out, "key");
@@ -763,7 +763,7 @@ void to_xml(std::ostream& out, const xact_t& xact)
}
{
push_xml w(out, "value");
- out << y.guard(*pair.second);
+ out << y.guard(*pair.second.first);
}
} else {
push_xml z(out, "tag");