static S rules_unfoldIndented(S s) { if (containsTabs(s)) warn("Tabs in input"); s = s.replace("\t", " "); L lines = toLines(s); for i over lines: { S line = lines.get(i); S trimmed = trim(line); if (empty(trimmed)) continue; int n = getIndent(line); int j = i+1; while (j < l(lines) && (emptyAfterTrim(lines.get(j)) || getIndent(lines.get(j)) > n)) ++j; while (i+1 < j) { ++i; S l = lines.get(j); if (!emptyAfterTrim(l)) lines.set(i, getIndent(l) + "(" + trimmed + ") & " + l); } } ret fromLines(l); }