[multiline repl] indent according to rank