summaryrefslogtreecommitdiff
path: root/src/xml.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-11 16:03:50 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-11 17:02:25 -0400
commitdea2aed0b509734ec4e1cd163ac2a4f013000da2 (patch)
tree7908da76c67ae5172882306a319bf26df81b73b4 /src/xml.cc
parentd580079df892c30d023b3211d6c4611c17b11f8f (diff)
downloadfork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.tar.gz
fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.tar.bz2
fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.zip
Untabified all source files
Diffstat (limited to 'src/xml.cc')
-rw-r--r--src/xml.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/xml.cc b/src/xml.cc
index 5dd10012..15710d44 100644
--- a/src/xml.cc
+++ b/src/xml.cc
@@ -43,8 +43,8 @@ namespace ledger {
namespace {
void xml_account(std::ostream& out, const account_t * acct) {
if ((acct->has_xdata() &&
- acct->xdata().has_flags(ACCOUNT_EXT_VISITED)) ||
- acct->children_with_flags(ACCOUNT_EXT_VISITED)) {
+ acct->xdata().has_flags(ACCOUNT_EXT_VISITED)) ||
+ acct->children_with_flags(ACCOUNT_EXT_VISITED)) {
out << "<account id=\"";
out.width(sizeof(unsigned long) * 2);
out.fill('0');
@@ -54,15 +54,15 @@ namespace {
out << "<name>" << acct->name << "</name>\n";
value_t total = acct->amount();
if (! total.is_null()) {
- out << "<amount>\n";
- to_xml(out, total);
- out << "</amount>\n";
+ out << "<amount>\n";
+ to_xml(out, total);
+ out << "</amount>\n";
}
total = acct->total();
if (! total.is_null()) {
- out << "<total>\n";
- to_xml(out, total);
- out << "</total>\n";
+ out << "<total>\n";
+ to_xml(out, total);
+ out << "</total>\n";
}
out << "</account>\n";
}
@@ -76,8 +76,8 @@ namespace {
foreach (const post_t * post, xact->posts)
if (post->has_xdata() &&
- post->xdata().has_flags(POST_EXT_VISITED))
- to_xml(out, *post);
+ post->xdata().has_flags(POST_EXT_VISITED))
+ to_xml(out, *post);
out << "</transaction>\n";
}
@@ -115,7 +115,7 @@ void format_xml::operator()(post_t& post)
assert(post.xdata().has_flags(POST_EXT_VISITED));
commodities.insert(commodities_pair(post.amount.commodity().symbol(),
- &post.amount.commodity()));
+ &post.amount.commodity()));
if (transactions_set.find(post.xact) == transactions_set.end())
transactions.push_back(post.xact);