(default: None) If not None, then the output will contain at most max_lines lines, with placeholder appearing at the end of the output.
max_lines