INNER CODE UNIT · Python
new_n
Cooler2/ApusGameEngine · tools/normalize_indent.py:269
new_n = old_n * 2
new_l, fl = _apply_indent(l, old_n, new_n, flag_above)
new_lines.append(new_l)
if new_l != l:
changed += 1
if fl:
flagged.append((i + 1, old_n, l.rstrip()))
return new_lines, changed, flagged
# ---------------------------------------------------------------------------
# File I/O
# ---------------------------------------------------------------------------
def read_file(path):
"""Returns (bom, crlf, lines) or raises."""