summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-16 05:38:56 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:53 -0400
commit1134fc7eff7094700abf16c2e532d7c3c40ae68d (patch)
treec36cedd92745a45b03cdbb2c8e0aa0ddd37b6c50 /src/main.cc
parent51ef4d79143b6fb0e31aea9053996ec3a09e39a4 (diff)
downloadfork-ledger-1134fc7eff7094700abf16c2e532d7c3c40ae68d.tar.gz
fork-ledger-1134fc7eff7094700abf16c2e532d7c3c40ae68d.tar.bz2
fork-ledger-1134fc7eff7094700abf16c2e532d7c3c40ae68d.zip
The text() function now works.
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index fbda5c3d..5f7882bf 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -271,8 +271,10 @@ static int read_and_report(ledger::report_t * report, int argc, char * argv[],
foreach (const value_t& value, xpath.find_all(xml_document, report)) {
if (value.is_xml_node()) {
value.as_xml_node()->print(std::cout);
- std::cout << std::endl;
+ } else {
+ std::cout << value;
}
+ std::cout << std::endl;
}
return 0;
}