summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-26 01:08:23 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-26 01:08:23 -0400
commit61fcfd0698e91ab98705aba0884f5b73259056b6 (patch)
treed245efe4085c92143fdcc48621c02413d7034d05
parent64c6329b5d6d96ccc9ab2c7ee59d6c65db29f8e2 (diff)
downloadfork-ledger-61fcfd0698e91ab98705aba0884f5b73259056b6.tar.gz
fork-ledger-61fcfd0698e91ab98705aba0884f5b73259056b6.tar.bz2
fork-ledger-61fcfd0698e91ab98705aba0884f5b73259056b6.zip
The "print" valexpr function no longer adds spaces
-rw-r--r--src/report.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/report.cc b/src/report.cc
index 8660ed64..aaf5270a 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -559,15 +559,8 @@ value_t report_t::fn_format(call_scope_t& args)
value_t report_t::fn_print(call_scope_t& args)
{
- std::ostream& out(output_stream);
- bool first = true;
- for (std::size_t i = 0; i < args.size(); i++) {
- if (first)
- first = false;
- else
- out << ' ';
- args[i].print(out);
- }
+ for (std::size_t i = 0; i < args.size(); i++)
+ args[i].print(output_stream);
return true;
}