From: Jay Freeman (saurik) Date: Mon, 19 Mar 2012 00:09:42 +0000 (+0000) Subject: Improve the pretty-printing of else clauses. X-Git-Tag: v0.9.451~1 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/e661185c1c35ad0eb684582c3f78cd032e84ae7b Improve the pretty-printing of else clauses. --- diff --git a/Output.cpp b/Output.cpp index ee58d06..e399d48 100644 --- a/Output.cpp +++ b/Output.cpp @@ -378,8 +378,12 @@ void CYFor::Output(CYOutput &out, CYFlags flags) const { if (initialiser_ != NULL) initialiser_->For(out); out.Terminate(); + if (test_ != NULL) + out << ' '; out << test_; out.Terminate(); + if (increment_ != NULL) + out << ' '; out << increment_; out << ')'; code_->Single(out, CYRight(flags)); @@ -460,7 +464,7 @@ void CYIf::Output(CYOutput &out, CYFlags flags) const { true_->Single(out, jacks); if (false_ != NULL) { - out << "else"; + out << '\t' << "else"; false_->Single(out, right); }