From 5f0280a90dea8f3813f07b6a610254625c2d5b10 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 24 May 2016 18:32:18 -0700 Subject: 2998 --- 029tools.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '029tools.cc') diff --git a/029tools.cc b/029tools.cc index a7657140..c9700752 100644 --- a/029tools.cc +++ b/029tools.cc @@ -32,6 +32,7 @@ case TRACE: { string label = current_instruction().ingredients.at(1).name; ostringstream out; for (int i = 2; i < SIZE(current_instruction().ingredients); ++i) { + if (i > 2) out << ' '; out << print_mu(current_instruction().ingredients.at(i), ingredients.at(i)); } trace(depth, label) << out.str() << end(); @@ -52,6 +53,7 @@ case STASH: { case STASH: { ostringstream out; for (int i = 0; i < SIZE(current_instruction().ingredients); ++i) { + if (i) out << ' '; out << print_mu(current_instruction().ingredients.at(i), ingredients.at(i)); } trace(2, "app") << out.str() << end(); @@ -80,11 +82,13 @@ def main [ :(code) string print_mu(const reagent& r, const vector& data) { if (is_literal(r)) - return r.name+' '; + return r.name; // End print Special-cases(r, data) ostringstream out; - for (long long i = 0; i < SIZE(data); ++i) - out << no_scientific(data.at(i)) << ' '; + for (long long i = 0; i < SIZE(data); ++i) { + if (i) out << ' '; + out << no_scientific(data.at(i)); + } return out.str(); } -- cgit 1.4.1-2-gfad0