static S ai_ifThenToMultiLine(S s) { s = trim(s); if (containsNewLine(s)) ret s; L tok = tok_groupRoundBrackets(javaTok(s)); int i = 2; while ((i = indexOfOneOfIC(tok, i, "then", "and")) >= 0) { tokPrepend(tok, i, "\n"); i += 2; } ret join(tok); }