From 75b7294a6db10e7f7b18b6aeef1aa0f568124a1d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 7 Mar 2010 22:47:07 -0500 Subject: Rewrite the "print" command as a custom function There ended up being too many corner cases for the generalized formatter to handle. --- src/xact.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xact.cc') 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"); -- cgit v1.2.3